Learn R Programming

datacheck (version 1.0.0)

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

Description

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

Usage

has.ruleErrors(profile.rules)

Arguments

profile.rules
a data.profile object

Value

  • boolean

See Also

Other datadict: as.rules, datadict.profile, is.datadict.profile, prep4rep, read.rules

Examples

Run this code
# 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.ruleErrors(db_e) == TRUE

Run the code above in your browser using DataLab