vc_missing: Checks For Missing Elements In Vector

View source: R/vc_missing.R

vc_missingR Documentation

Checks For Missing Elements In Vector

Description

Checks For Missing Elements In Vector

Usage

vc_missing(data, x, prop.acceptable = 0, missing = c("", "NULL", "NA",
  "N/A", "na", "n/a"), required = FALSE, ...)

Arguments

data

A data frame.

x

Column name from data (character string).

prop.acceptable

proportion of allowable missing.

missing

values that missing can take.

required

whether the vector in the table is required.

...

ignored.

Examples

set.seed(10)
dat <- data.frame(x = sample(c(NA, rep(LETTERS[1:10])), 10000, TRUE))
vc_missing(dat, 'x')
vc_missing(dat, 'x', prop.acceptable = .1)

steventsimpson/valiData documentation built on Jan. 27, 2023, 2:11 p.m.