make_missing | R Documentation |
Randomly make values missing in all data columns, or a subset of columns
make_missing(data, cols = NULL, messiness = 0.1, missing = NA)
data |
input dataframe |
cols |
set of columns to apply transformation to. If |
messiness |
Percentage of values to change. Must be between 0 and 1. Default 0.1. |
missing |
A single value, vector, or list of what the
missing values will be replaced with. If length is greater
than 1, values will be replaced randomly.
Default |
a dataframe the same size as the input data.
make_missing(mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.