pc_in_total_of_match | R Documentation |
Calculates the percentage of a certain value within a vector or table.
pc_in_total_of_match(vec_or_table, category, NA_omit = TRUE)
vec_or_table |
A vector or table. |
category |
The value to calculate the percentage for. |
NA_omit |
Logical. Whether to omit missing values from the calculation. |
The percentage of category
in vec_or_table
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.