View source: R/helper_functions.R
| SampleOne | 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)
Other utility functions:
ClusterTable,
ClusterTable-methods,
Hamming(),
MSTEdges(),
TipTimedTree(),
UnshiftTree(),
as.multiPhylo(),
match,phylo,phylo-method,
sapply64(),
sort.multiPhylo()
SampleOne(9:10)
SampleOne(letters[1:4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.