replace_na.Rd
Randomized replacement of values by NA
replace_na(v, percentage = 0.05, seed = NULL)
(any
) vector of any type
(numeric
) Value between 0 and 1 defining
how much of the vector shall be replaced by NA. This number
is randomized by plus minus 5 percent to have full randomization.
(numeric
) seed to set to make randomization reproducible
The input vector v where a certain number of values is replaced by NA