sample_safe {DIETCOST} | R Documentation |
Safe sampling
Description
Safely extracts a random unitary sample from a vector.
Usage
sample_safe(x)
Arguments
x |
Vector. |
Value
Random sample.
Examples
intake <- DIETCOST::sample_safe(c(10,25,37,52,100));
[Package DIETCOST version 1.0.0.0 Index]