counts_fields | R Documentation |
This takes a tibble and a field name and does a group_by that field and counts the results
counts_fields(data, field_name)
data |
The tibble to count groups |
field_name |
The name of the field to group and count |
Group a dataset by a field and provide the counts of each group
library(rolemapr) library(tibble) practice_data <- tribble( ~practice_area, ~role, "Test area", "Test Role", ) counts_fields(practice_data, "practice_area")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.