freqTable: Make flextable summarizing frequency

Description Usage Arguments Value Examples

View source: R/freqTable.R

Description

Make flextable summarizing frequency

Usage

1
2
3
4
5
6
7
freqTable(
  x,
  digits = 1,
  lang = getOption("freqTable.lang", "en"),
  vanilla = FALSE,
  ...
)

Arguments

x

A vector

digits

integer indicating the number of decimal places

lang

Language. choices are one of c("en","kor")

vanilla

Logical. Whether make vanilla table or not

...

Further arguments to paseed to the df2flextable function

Value

An object of clss flextable

Examples

1
2
3
require(moonBook)
freqTable(acs$Dx)
#freqTable(acs$smoking,lang="kor",vanilla=TRUE,fontsize=12)

cardiomoon/webr documentation built on May 12, 2020, 4:12 a.m.