| SampleOne {TreeTools} | R Documentation |
SampleOne() is a fast alternative to sample() that avoids some checks.
SampleOne(x, len = length(x))
x |
A vector to sample. |
len |
(Optional) Integer specifying length of |
SampleOne() returns a length one vector, randomly sampled from x.
Martin R. Smith (martin.smith@durham.ac.uk)
SampleOne(9:10) SampleOne(letters[1:4])