View source: R/utils_sampling.R
sample_missing | R Documentation |
Sample and replace values with NA in a vector
sample_missing(x, y = NULL, p, method = "random")
x , y |
input vectors |
p |
proportion of missing values (0,1) |
method |
method from sampling values |
a vector with missing values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.