Skip to contents

This function will return a dataframe of the grouping variable from the input nested dataframe.

Usage

sample_group(nest_df, index)

Arguments

nest_df

The nested dataframe to be sampled from. The right-most column must be a dataframe type with name 'data'.

index

Optional. The index of the dataframe to be sampled from. If no index is provided, a random subset will be returned.