View source: R/add_percent_columns.R
add_percent_columns | R Documentation |
Takes a complex table object as input, and it calculates the percentage for each column
add_percent_columns(tb)
tb |
a 'table' R object |
a 'matrix' with percent columns added next to each table column
data(mtcars) tb0 <- table(mtcars$cyl, mtcars$gear) tb1 <- add_percent_columns(tb = tb0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.