Sampling one grouping variable from a nested dataframe. The sampling could be done either randomly or a specific row could be indicated.
Source:R/samplesubset.R
sample_group.Rd
This function will return a dataframe of the grouping variable from the input nested dataframe.