sample_rcpp {perccal} | R Documentation |
Helper function which samples from [1,2,...,N] with replacement nsamp times in Rcpp.
sample_rcpp(N, nsamp)
N |
Largest integer to sample from. |
nsamp |
number of samples from [1,2,...,N] with replacement to obtain. |
samps nsamp-length vector of samples from [1,2,...,N] with replacement to obtain.