【发布时间】:2019-05-03 19:14:37
【问题描述】:
任何使用 R 包 summarytools 的人都遇到过这个问题?我已经设置了全局 summarytools 选项来抑制 ctables 中的总计:
st_options(ctable.totals=FALSE)
我在函数调用中也调用了同样的方法:
with(df, ctable(
gender,
var2,
chisq = F,
headings = T,
totals = FALSE
)
但它仍然会在实际的 cross_table 表数据中输出总计。有没有人找到抑制这种情况的方法?
【问题讨论】:
-
我测试了这段代码
with(mtcars, ctable( vs, am, chisq = F, headings = T, totals = F ) )并没有显示总数。 -
总数未显示在呈现的输出中 - 您是否在交叉表本身中看到它们?
-
这是我的输出:pastebin.com/7QyNSGJR
标签: r summarytools