View source: R/summarize_values_by_group.R
summarize_value_by_group | R Documentation |
Creates a summary table of the number of times a specified value appears in each dataframe column, by group. For summarizing missing values, use instead healthyr::summarize_NA_by_group
summarize_value_by_group(df, grouping, val)
df |
Inputs a dataframe |
grouping |
Inputs a character value of the column name by which to group the results. |
val |
Inputs a character value of the value that you want to summarize across groups and columns. |
Returns a dataframe of a summary table counting the number of occurences of the value in each column, by group.
## Not run: summarize_value_by_group(df = mydata, grouping = "enum", val = "dontknow")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.