sample_groups: sample from groups of variables

Description Usage Arguments Value Examples

Description

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.

Usage

1
sample_groups(.data, ..., n = 6)

Arguments

...

the variables you would like to group

n

the number of groupings to return

df

the data.frame you are sampling from

Value

a data frame containing the sampled groupings

Examples

1

mattmills49/helpers documentation built on May 21, 2019, 1:25 p.m.