gen.mcar | R Documentation |
Generate missing (completely at random) cells in a data set
gen.mcar(df, prop.na = 0.2, warn.empty.row = TRUE, ...)
df |
Input data frame or matrix. |
prop.na |
Proportion of generated missing cells. The default is
|
warn.empty.row |
Show a warning if empty rows were present in the output data set. |
... |
Other parameters (will be ignored). |
A data frame or matrix containing generated missing cells.
Shangzhi Hong
data("mtcars") mtcars.mcar <- gen.mcar(mtcars, warn.empty.row = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.