perble | R Documentation |
Extends 'table' by including proportions and percentages.
perble(x, tidy = TRUE, spround = FALSE)
x |
a scalar, atomic vector, or list. |
tidy |
by default, results are tidied into long data frame. Each group has its own row and there are four rows: group, count, proportion, and percent. If 'tidy = FALSE', a matrix is returned with count, proportion, and percent saved as row names. The group names are saved as column names. |
spround |
if TRUE, proportion and percent are rounded to the second decimal place. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.