sample_rcpp {perccal}R Documentation

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.


[Package perccal version 1.0 Index]