produce_NA | R Documentation |
Produces a dataframe with missing values.
For each variable, a random sample of observations of size proportion * nrow(x)
will be set to NA.
produce_NA(x, proportion = 0.1)
x |
a dataframe |
proportion |
proportion of missing values to be produced; a vector of size |
dataframe with missing values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.