Make table summarizing frequency
freqSummary(x, digits = 1, lang = "en")
x | A vector |
---|---|
digits | integer indicating the number of decimal places |
lang | Language. choices are one of c("en","kor") |
require(moonBook) freqSummary(acs$Dx)#> Count Percent Valid Percent Cum Percent #> NSTEMI "153" "17.9" "17.9" "17.9" #> STEMI "304" "35.5" "35.5" "53.3" #> Unstable Angina "400" "46.7" "46.7" "100.0" #> Sum "857" "100.0" "100.0" ""freqSummary(acs$smoking,lang="kor")#> 빈도수 백분율 유효백분율 누적백분율 #> Ex-smoker "204" "23.8" "23.8" "23.8" #> Never "332" "38.7" "38.7" "62.5" #> Smoker "321" "37.5" "37.5" "100.0" #> 합계 "857" "100.0" "100.0" ""