View source: R/sample_stratified.R
| get_samples_from_strata | R Documentation | 
for internal use only! This function selects samples based on provided strata.
get_samples_from_strata(
  y,
  original_order,
  strata,
  samples_per_strata,
  sampling_for = c("calibration", "validation"),
  replacement = FALSE
)
original_order | 
 a matrix of one column with the response variable.  | 
strata | 
 the number of strata.  | 
sampling_for | 
 sampling to select the calibration samples ("calibration") or sampling to select the validation samples ("validation").  | 
replacement | 
 logical indicating if sampling with replacement must be done.  | 
a list with the indices of the calibration and validation samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.