数据探索 summarytools包
#sudo apt install libmagick++-dev
library(summarytools)
data("tobacco")
dfSummary(tobacco)
print(dfSummary(tobacco),method = 'render')
descr(tobacco$BMI)
descr(tobacco$BMI,weights = tobacco$samp.wgts)
freq(tobacco$disease)
freq(tobacco$disease,weights = tobacco$samp.wgts)
ctable(tobacco$disease,tobacco$gender)
data("tobacco")
dfSummary(tobacco)
print(dfSummary(tobacco),method = 'render')
descr(tobacco$BMI)
descr(tobacco$BMI,weights = tobacco$samp.wgts)
freq(tobacco$disease)
freq(tobacco$disease,weights = tobacco$samp.wgts)
ctable(tobacco$disease,tobacco$gender)
评论
发表评论