introNAs: Introduce NA's into a Dataframe

View source: R/introNAs.R

introNAsR 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

mvdalab documentation built on Oct. 6, 2022, 1:05 a.m.