Description Usage Arguments Value
View source: R/balanced_sampling.R
Take a stratified sample of chosen size from a data
1 | samplestratified(mydat, nsamples, strats)
|
mydat |
A data frame with continous variables |
nsamples |
The number of samples you'd like to take |
strats |
A vector of length nrow(mydat) with a unique value for each stratum |
A dataframe that is a subset of mydat, with nrows close to nsamples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.