prodNA

0th

Percentile

Introduce Missing Values Completely at Random

'prodNA' artificially introduces missing values. Entries in the given dataframe are deleted completely at random up to the specified amount.

Keywords
NA, classes
Usage
prodNA(x, noNA = 0.1)
Arguments
x
dataframe subjected to missing value introduction.
noNA
proportion of missing values w.r.t. the number of entries of 'x'.
Value

dataframe with missing values.

See Also

missForest

Aliases
  • prodNA
Examples
data(iris)
## Introduce 5% of missing values to the iris data set
iris.mis <- prodNA(iris, 0.05)
summary(iris.mis)
Documentation reproduced from package missForest, version 1.4, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.