rand_na: Random NA inseration

Description Usage Arguments Value Examples

View source: R/rand_na.R

Description

Random NA inseration

Usage

1
rand_na(mat = matrix(1:100, ncol = 20), prop = 0.3, seed = NULL)

Arguments

mat

Matrix, or data.frame of data

prop

Numeric b/w 0 and 1, proportion of NAs

seed

Integer, seed number

Value

matrix with NAs

Examples

1

aljabadi/Altools documentation built on Jan. 17, 2022, 8:55 a.m.