powered by
Takes a data frame and replaces randomly part of the values by missing values.
generateNA(data, p = 0.1, seed = NULL)
A data.frame.
data.frame
Proportion of missing values to approximately add to each column of data.
data
An integer seed.
data with missing values.
# NOT RUN { head(generateNA(iris)) # }
Run the code above in your browser using DataLab