vc_null: Checks For Null Elements In Vector

View source: R/vc_null.R

vc_nullR Documentation

Checks For Null Elements In Vector

Description

Checks For Null Elements In Vector

Usage

vc_null(data, x, prop.acceptable = 0, missing = c("", "NULL"),
  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("NULL", rep(LETTERS[1:10])), 10000, TRUE))
vc_null(dat, 'x')
vc_null(dat, 'x', prop.acceptable = .1)

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