sample_replace {noisemodel} | R Documentation |
Sample considering reference values
Description
Similar to standard sample
function. The values in ref
can be chosen or not,
according to original
.
Usage
sample_replace(x, size, original, ref)
Arguments
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 |
Value
A vector with the elements chosen from x
.
[Package noisemodel version 1.0.2 Index]