Anyone using the R package summarytools run into this? I've set the global summarytools options to suppress totals in ctables:
st_options(ctable.totals=FALSE)
And I've also called the same in the function invocation:
with(df, ctable(
gender,
var2,
chisq = F,
headings = T,
totals = FALSE
)
And yet it still spits out totals in actual cross_table table data. Has anyone found a way to suppress this?
This was fixed in an later version of summarytools.
with(tobacco, ctable(
gender,
smoker,
chisq = F,
headings = T,
totals = FALSE
))
## Cross-Tabulation, Row Proportions
## gender * smoker
## Data Frame: tobacco
##
## -------- -------- ------------- -------------
## smoker Yes No
## gender
## F 147 (30.1%) 342 (69.9%)
## M 143 (29.2%) 346 (70.8%)
## <NA> 8 (36.4%) 14 (63.6%)
## -------- -------- ------------- -------------