This function takes a stratified sample without replacement from a data set.
Vector of stratum identifiers; will be coerced to character
named vector of stratum sample sizes, with names corresponding to the values of
vector of indices into
strata giving the sample
The "sampling" package has many more sampling algorithms.
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.