introNAs {mvdalab} | R Documentation |
Introduce NA's into a Dataframe
Description
Function for testing missing value imputation algorithms
Usage
introNAs(data, percent = 25)
Arguments
data |
a dataset without missing values. |
percent |
the percent data that should be randomly assigned as missing |
Details
A completed data frame is returned with the desired percentage of missing data. NAs
are assigned at random.
Author(s)
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
Examples
dat <- introNAs(iris)
dat
[Package mvdalab version 1.7 Index]