Description Usage Arguments Value Examples
sample_groups
allows you to restrict the data to only a limited number
of groupings of variables. This is useful for when you have multilevel data
and would like to sample from multiple levels at once. This makes exploratory
plotting a little easier.
1 | sample_groups(.data, ..., n = 6)
|
... |
the variables you would like to group |
n |
the number of groupings to return |
df |
the data.frame you are sampling from |
a data frame containing the sampled groupings
1 | sample_groups(mtcars, cyl, am)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.