Rcpp sample function
rcpp_sample(x, n, replace = FALSE)
Vector of elements to sample from.
Size of the sample.
Sample with replacement.
vector
Rcpp implementation of the sample function.
Rcpp
sample