Rdocumentation
powered by
Learn R Programming
perccal (version 1.0)
sample_rcpp: Sample from [1,2,...,N] with replacement nsamp times in Rcpp.
Description
Helper function which samples from [1,2,...,N] with replacement nsamp times in Rcpp.
Usage
sample_rcpp(N, nsamp)
Arguments
N
Largest integer to sample from.
nsamp
number of samples from [1,2,...,N] with replacement to obtain.
Value
samps nsamp-length vector of samples from [1,2,...,N] with replacement to obtain.