Take a random sample from a range of integer values between 1 and n. Its purpose is similar to that of sample, but that function fails when n is very large.
Usage
sampleInt(n, size, replace=FALSE)
Value
vector of integer numbers
Arguments
n
Positive number (integer); the number of items to choose from
size
Non-negative integer; the number of items to choose