Learn R Programming

datacheck (version 0.9.8)

as.rules: Converts a vector of lines into a rules data frame

Description

The rules must be one per line and should evaluate to a vector of TRUE or FALSE.

Usage

as.rules(lines = "")

Arguments

lines
R statements with conditions

Value

  • The results as a datadict object or NA for 'empty' rule lines

Details

A rule must only refer to one 'column' name. Rule statements may not have assignment operators (= or <-). Rules may be separated by empty or commented lines. A comment after a rule is used to document the specific rule in the summary table.

See Also

Other datadict: datadict.profile, has.ruleErrors, is.datadict.profile, prep4rep, read.rules