has_rule_errors: Quick check if a rule profile on a table has any errors.

Description Usage Arguments Value Author(s) See Also Examples

Description

Quick check if a rule profile on a table has any errors.

Usage

1
has_rule_errors(profile_rules)

Arguments

profile_rules

a data.profile object

Value

boolean

Author(s)

Reinhard Simon

See Also

Other datadict: as.rules; as_rules; datadict.profile; datadict_profile; has.ruleErrors; is.datadict.profile; is_datadict_profile; prep4rep; read.rules; read_rules

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Get example data file with some errors in it
atbler <- system.file("examples/db-err.csv", package = "datacheck")
arule <- system.file("examples/rules1.R", package = "datacheck")

at <- read.csv(atbler, stringsAsFactors = FALSE)
ad <- read_rules(arule)

db_e <- datadict_profile(at, ad)

has_rule_errors(db_e) == TRUE 

datacheck documentation built on May 2, 2019, 4:52 a.m.