arma_sample: Arma Samples and Permutations

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

arma_sample takes a sample of the specified size from the elements of x using either with or without replacement.

Usage

1
arma_sample(x, size, replace)

Arguments

x

a vector of elements from which to choose.

size

a non-negative integer giving the number of items to choose.

replace

should sampling be with replacement.

Value

A vector of length size with elements drawn from x.

Examples

1
2
3
4
5
6
## Not run: 
x <- 1:12
size <- 5
arma_sample(x, size, replace = TRUE)

## End(Not run)

hidetify documentation built on Aug. 20, 2021, 5:06 p.m.