produce_NA: Produces a dataframe with missing values

View source: R/produce_NA.R

produce_NAR Documentation

Produces a dataframe with missing values

Description

Produces a dataframe with missing values. For each variable, a random sample of observations of size proportion * nrow(x) will be set to NA.

Usage

produce_NA(x, proportion = 0.1)

Arguments

x

a dataframe

proportion

proportion of missing values to be produced; a vector of size ncol(x) or a single value to be applied to all variables in the dataframe.

Value

dataframe with missing values.


missForestPredict documentation built on May 29, 2024, 7:26 a.m.