sample_rcpp: Sample from [1,2,...,N] with replacement nsamp times in Rcpp.

Description Usage Arguments Value

Description

Helper function which samples from [1,2,...,N] with replacement nsamp times in Rcpp.

Usage

1
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.


perccal documentation built on May 2, 2019, 1:06 p.m.