Description Usage Arguments Value Examples
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.
1 |
n |
Positive number (integer); the number of items to choose from |
size |
Non-negative integer; the number of items to choose |
replace |
Logical. Should sampling be with replacement? |
vector of integer numbers
1 2 3 4 5 | sampleInt(1e+12, 10)
# this may fail:
# sample.int(1e+12, 10)
# sample.int(1e+9, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.