numSummary: Numerical Summary

Description Usage Arguments Functions Examples

View source: R/numSummary.R

Description

Numerical Summary

Usage

1
2
3
4
5
numSummary(x, ..., digits = 2, lang = "en")

numSummary1(x, ..., digits = 2, lang = "en")

numSummary2(x, ..., digits = 2, lang = "en")

Arguments

x

A numeric vector or a data.frame or a grouped_df

...

further arguments to be passed

digits

integer indicating the number of decimal places

lang

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

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
require(moonBook)
require(magrittr)
require(dplyr)
require(rrtable)
require(webr)
require(tibble)
numSummary(acs)
numSummary(acs$age)
numSummary(acs,age,EF)
acs %>% group_by(sex) %>% numSummary(age,BMI)
acs %>% group_by(sex) %>% select(age) %>% numSummary
acs %>% group_by(sex) %>% select(age,EF) %>% numSummary
acs %>% group_by(sex,Dx) %>% select(age,EF) %>% numSummary
acs %>% group_by(sex,Dx) %>% select(age) %>% numSummary
#acs %>% group_by(sex,Dx) %>% numSummary(age,EF,lang="kor")

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