generate_na: Adds Missing Values to a Data Set

Description Usage Arguments Value Examples

Description

Takes a data.frame or a tibble and replaces randomly part of the values by missing values.

Usage

1
generate_na(x, p = 0.1, seed = NULL)

Arguments

x

data.frame or tibble.

p

Proportion of missing values to approximately add to each column of x. Default value is 0.1.

seed

An integer seed.

Value

x with missing values.

Examples

1

kvantas/missTune documentation built on May 12, 2019, 10:51 a.m.