generateNA | R Documentation |
Takes a vector, matrix or data.frame
and replaces some values by NA
.
generateNA(x, p = 0.1, seed = NULL)
x |
A vector, matrix or |
p |
Proportion of missing values to add to |
seed |
An integer seed. |
x
with missing values.
generateNA(1:10, p = 0.5)
head(generateNA(iris, p = 0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.