Description Usage Arguments Examples
Make a table showing numerical summary
1 2 3 4 5 6 7 | numSummaryTable(
x,
...,
lang = getOption("numSummaryTable.lang", "en"),
vanilla = FALSE,
add.rownames = NULL
)
|
x |
A grouped_df or a data.frame or a vector |
... |
further argument to be passed |
lang |
Language. choices are one of c("en","kor") |
vanilla |
Logical. Whether make vanilla table or not |
add.rownames |
Logical. Whether or not add rownames |
1 2 3 4 5 6 7 8 | require(moonBook)
require(dplyr)
numSummaryTable(acs)
numSummaryTable(acs$age)
acs %>% group_by(sex) %>% select(age) %>% numSummaryTable
acs %>% group_by(sex) %>% select(age,EF) %>% numSummaryTable
acs %>% group_by(sex,Dx) %>% select(age,EF) %>% numSummaryTable(vanilla=FALSE)
acs %>% group_by(sex,Dx) %>% numSummaryTable(age,EF,add.rownames=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.