number_of_groups {MAPCtools} | R Documentation |
Count number of groups across a set of variables in a data frame
Description
Counts number of groups across specified grouping and stratification variables in a data frame. At least one grouping or stratification variable must be provided.
Usage
number_of_groups(df, group_by)
Arguments
df |
A data frame with grouping and/or stratification variables. |
group_by |
Variables in data frame that defines a grouping of the data. |
Value
Number of distinct groups and strata in the data frame.
[Package MAPCtools version 0.1.0 Index]