View source: R/helpfunctions.R
| get_grouping_levels | R Documentation |
A helper function that identifies the hierarchy of grouping variables. It checks for each grouping level how many of the other grouping levels it varies within and returns the ranked order of the grouping levels.
get_grouping_levels(grouping_df)
grouping_df |
a |
a named integer vector identifying the grouping hierarchy, where "1" is the level of the individual observations and the largest number is the highest grouping level. Crossed levels will have the same number.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.