by A column name (quoted or unquoted) in data. Summary statistics will be calculated separately for each level of the by variable (e.g. by = trt). If NULL, summary statistics are calculated using all observations. To stratify a table by two or more variables, use tbl_strata() label Li...
Summary typeThere are two primary ways to select variables by their summary type. This is useful, for example, when you wish to report the mean and standard deviation for all continuous variables:statistic = all_continuous() ~ "{mean} ({sd})". all_continuous()all_categorical() Dichotomous ...
Tests default to"kruskal.test"for continuous variables ("wilcox.test"when "by" variable has two levels),"chisq.test.no.correct"for categorical variables with all expected cell counts >=5, and"fisher.test"for categorical variables with any expected cell count <5. ...
+ **Summary type** There are two primary ways to select variables by their summary type. This is useful, for example, when you wish to report the mean and standard deviation for all continuous variables: `statistic = all_continuous() ~ "{mean} ({sd})"`. ```{r, eval=FALSE} all_...
base包中的sweep函数是处理统计量的工具,一般可以结合apply()函数来使用。当我们我们需要将apply()统计...