impact-initiatives / analysistools

https://impact-initiatives.github.io/analysistools/
Other
4 stars 5 forks source link

create_loa identify all NAs columns as integer, therefore as select multiple #16

Open yannsay-impact opened 1 year ago

yannsay-impact commented 1 year ago

create_loa identify all NAs columns as integer, therefore as select multiple, leading error in the create_analysis. see #15

dataset_test <- data.frame(wrong_select.multiple = rep("hello",5),
                           only_nas = rep(NA, 5),
                           anything = runif(5))
create_loa(srvyr::as_survey(dataset_test))

image

yannsay-impact commented 1 year ago

all_na value are read as logical with create_loa