View source: R/internal-number_of_groups.R
number_of_strata | 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_strata(df, stratify_by)
df |
A data frame with grouping and/or stratification variables. |
stratify_by |
Variables in data frame that defines a stratification of the data. |
Number of distinct strata in the data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.