numSummaryTable {webr}R Documentation

Make a table showing numerical summary

Description

Make a table showing numerical summary

Usage

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

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)

[Package webr version 0.1.5 Index]