Skip to contents

This function returns the currently available random sampling functions.

Usage

listSamplingFunctionNames(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 function

Author

Alessandro Barberis

Examples


listSamplingFunctionNames()
#>                   id                                 name
#> 1              rswor             sampleWithoutReplacement
#> 2             srswor simpleRandomSampleWithoutReplacement
#> 3   stratified_rswor   stratifiedSampleWithoutReplacement
#> 4     balanced_rswor     balancedSampleWithoutReplacement
#> 5        permutation                    permutationSample
#> 6             kfolds                       randomKm1Folds
#> 7  stratified_kfolds                   stratifiedKm1Folds
#> 8    balanced_kfolds                     balancedKm1Folds
#> 9        leave_p_out                      leavePOutSample
#> 10     leave_one_out                    leaveOneOutSample
#> 11              rswr                sampleWithReplacement
#> 12             srswr    simpleRandomSampleWithReplacement
#> 13   stratified_rswr      stratifiedSampleWithReplacement
#> 14     balanced_rswr        balancedSampleWithReplacement
#> 15         bootstrap                      bootstrapSample