This function returns the currently available random sampling methods.
Usage
listAvailableSamplingMethods(x = c("all", "rswor", "rswr"))
Arguments
- x
character, whether to return all sampling methods (
all
) or only the methods using sampling with (rswr
) or without (rswor
) replacement
Value
A data frame with two columns:
- id
the id of the random sampling method, to be used in the function calls
- name
the name of the random sampling method
Examples
listAvailableSamplingMethods()
#> id name
#> 1 rswor random sampling without replacement
#> 2 srswor simple random sampling without replacement
#> 3 stratified_rswor stratified random sampling without replacement
#> 4 balanced_rswor balanced random sampling without replacement
#> 5 permutation permutation sampling
#> 6 kfolds random k-fold sampling
#> 7 stratified_kfolds stratified k-fold sampling
#> 8 balanced_kfolds balanced k-fold sampling
#> 9 leave_p_out leave-p-out sampling
#> 10 leave_one_out leave-one-out sampling
#> 11 rswr random sampling with replacement
#> 12 srswr simple random sampling with replacement
#> 13 stratified_rswr stratified random sampling with replacement
#> 14 balanced_rswr balanced random sampling with replacement
#> 15 bootstrap ordinary bootstrap sampling