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