numSummaryTable: Make a table showing numerical summary

Description Usage Arguments Examples

View source: R/numSummary.R

Description

Make a table showing numerical summary

Usage

1
2
3
4
5
6
7
numSummaryTable(
  x,
  ...,
  lang = getOption("numSummaryTable.lang", "en"),
  vanilla = FALSE,
  add.rownames = NULL
)

Arguments

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

Examples

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)

webr documentation built on March 26, 2020, 6:22 p.m.