chk_in_set: Audits column values of specific integers.

Description Usage Arguments Value Examples

View source: R/number_value_checks.R

Description

Uses the assertr::in_set() function.

Usage

1
chk_in_set(.data, .values, .variables)

Arguments

.data

Data to audit.

.values

The integer values.

.variables

Column variables to check.

Value

Adds attribute that contains the audit errors, if any, to the data. Use aud_report() to view the audit fails.

Examples

1
2
3
4
5
6
library(magrittr)
ds <- data.frame(a = 1:3)

flaws <- ds %>%
chk_in_set(1:2, "a")
aud_report(flaws)

lwjohnst86/PROMISE.audit documentation built on May 6, 2019, 9:54 a.m.