Takes repeated samples without replacement from the population. See the Details section below for further information.
Arguments
- k
integer, the number of repeated samples to generate
- N
positive integer value, the population size
Details
This function takes repeated samples by using the replicate
function and the permutationSample
sampling
function.
Examples
#Set seed for reproducibility
set.seed(seed = 5381L)
#Take two samples without replacement
repeatedPermutationSample(
k = 2,
N = 10
)
#> [[1]]
#> [1] 1 9 7 2 4 3 6 10 5 8
#>
#> [[2]]
#> [1] 8 1 7 4 6 5 10 3 2 9
#>