sample_replace {noisemodel} | 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
.