# NOT RUN {
props(HELPrct$substance)
# Formula version removes missing data (for now, may change this in future versions)
props(HELPmiss$link)
props( ~ link, data = HELPmiss)
tally( ~ link, data = HELPmiss, format = "prop")
props( ~ substance | sex, data = HELPrct)
props( ~ substance | sex, data = HELPrct, format = "percent")
counts( ~ substance | sex, data = HELPrct)
if (require(ggformula)) {
df_stats( ~ substance | sex, data = HELPrct, props, counts)
}
# }
Run the code above in your browser using DataLab