Return a random stratified subsample of a dataframe
1 | getSubSample(data, group, p = 0.5)
|
data |
data frame |
group |
stratification variable |
p |
proportion of cases to return |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.