amputeData | R Documentation |
Randomly amputes data (MCAR).
amputeData(data, perc = 0.1, cols = names(data))
data |
The data to be amputed |
perc |
A scalar. The percentage (0-1) to be amputed. |
cols |
The columns to ampute. |
The same dataset with random values in cols
set to NA.
data(iris) head(iris,10) ampIris <- amputeData(iris) head(ampIris,10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.