View source: R/internal-number_of_groups.R
number_of_groups | R Documentation |
Counts number of groups across specified grouping and stratification variables in a data frame. At least one grouping or stratification variable must be provided.
number_of_groups(df, group_by)
df |
A data frame with grouping and/or stratification variables. |
group_by |
Variables in data frame that defines a grouping of the data. |
Number of distinct groups and strata in the data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.