Creates a 1-D table (i.e. from 1 factor) in a nice format. Useful for converting to a printable table or for converting to a figure (using EMIbar).
1 2 |
table |
any 1-D table, or an object that can be converted to a two column data frame |
name |
string for first column header |
sort |
sort table from highest to lowest (default is TRUE) |
percent |
add column indicating percentages (default is FALSE) |
total |
add row indicating total (default is FALSE) |
sum |
total number to base percentages (default is the sum of all values) |
remove |
vector of row names to remove (ex. NA) |
bottom |
vector of row names to keep at the bottom of the table (ex. Other) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.