biostatsPMH/reportRmd

factor levels with variable names cause ugly output

Closed this issue · 1 comments

dt <- data.frame(molecular=sample(c("EGFR","ALK","KRAS","None"),50,replace=T)) %>% mutate(EGFR=ifelse(molecular == "EGFR","Yes","No"))
rm_covsum(data=dt, covs=names(dt)) # UGLY
rm_covsum(data=dt, covs=names(dt)[2:1]) # OK, because variable name is before factor

Fixed 14 March 2023