Description Usage Arguments Value Examples
Takes a data frame and replaces randomly part of the values by missing values.
1 | generate_na(data, p = 0.1, seed = NULL)
|
data |
A |
p |
Proportion of missing values to approximately add to each column of |
seed |
An integer seed. |
data
with missing values.
1 | head(generate_na(as.matrix(iris[,1:4])))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.