powered by
cprop(tab, digits = 1, total = TRUE, percent = FALSE, drop = TRUE)
TRUE
NaN
table
proptab
rprop
prop
prop.table
## Sample table data(Titanic) tab <- apply(Titanic, c(4,1), sum) ## Column percentages cprop(tab) ## Column percentages with custom display cprop(tab, digits=2, percent=TRUE, total=FALSE)
Run the code above in your browser using DataLab