GetSamples | R Documentation |
Internal function: Get samples from a data frame containing at a minimum columns dataset
GetSamples(filled_df)
filled_df |
a filled dataframe (see details) |
Get samples from a data frame containing at a minimum columns dataset. Columns on the right to dataset may contain subcategories, called subgroup_1, subgroup_2 etc.
Named lists or nested lists of named lists
MS
df = data.frame(dataset=c(rep('a',4), rep('b',2)), subgroup_1=c('x','x','y','y', 'x','y'), stringsAsFactors=FALSE)
GetSamples(df)
df = data.frame(dataset=c(rep('a',4), rep('b',2)), subgroup_1=c('x','x','y','y', 'x','y'), subgroup_2=c('a', 'b', 'a', 'b', NA, NA), stringsAsFactors=FALSE)
GetSamples(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.