sample_replace | R Documentation |
Similar to standard sample
function. The values in ref
can be chosen or not,
according to original
.
sample_replace(x, size, original, ref)
x |
a vector with the alternatives to choose. |
size |
an integer with the number of elements to select from |
original |
a boolean indicating if the values in |
ref |
a vector with |
A vector with the elements chosen from x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.