Description Usage Arguments Details Value Author(s) See Also Examples
Tabulate categorical variable
1 2 3 4 | tabulate_categorical(x,
variable_name,
round_digits = 1,
useNA = c("ifany", "always", "no"))
|
x |
variable object for tabulation |
variable_name |
String variable name to include in first column of output table. |
round_digits |
integer to define how many digits to round the percentage |
useNA |
whether to include NA values in the table. See ‘Details’. Can be abbreviated. |
useNA
controls if the table includes counts of NA values: the allowed values correspond
to never ("no"), only if the count is positive ("ifany") and even for zero counts ("always").
data frame with one row per unique value within the input variable and columns containing the unique values and their counts with associated percentages
Jay Achar
1 | tabulate_categorical(mtcars$vs, variable_name = "VS")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.