kaz-yos / tableone

R package to create "Table 1", description of baseline characteristics with or without propensity score weighting
https://cran.r-project.org/web/packages/tableone/index.html
217 stars 41 forks source link

Allow option to remove "=TRUE" and "=FALSE" from variable names #97

Open dylanrussellmd opened 2 years ago

dylanrussellmd commented 2 years ago

A good variable label and row name should imply the "=TRUE" or "=FALSE". The varLabels option is extremely useful but not if the "=TRUE" remains. Ideal behavior would be allow the explain option to remain available so that (%) or (mean (SD)) is still appended to variable labels where necessary, but have a second option that can be set to FALSE to remove the "=TRUE" or "=FALSE" appendage to variable labels.

Cainefm commented 1 year ago

maybe dropEqual = T in print() can fit your needs.