validator: Define validation rules for data

Description Usage Arguments Value Validating expressions See Also Examples

View source: R/validator.R

Description

Define validation rules for data

Usage

1

Arguments

...

A comma-separated list of validating expressions

.file

A character vector of file locations (see also the section on file parsing in the syntax help file).

Value

An object of class validator (see validator-class).

Validating expressions

Each validating expression should evaluate to a logical. Allowed syntax of the expression is described in syntax.

A validating expression is an expression whose evaluation results in TRUE, FALSE or NA.

See Also

Examples

1
2
3
4
5
6
7
v <- validator(
  height>0
  ,weight>0
  ,height < 1.5*mean(height)
)
cf <- confront(women, v)
summary(cf)

validate documentation built on May 29, 2017, 3:43 p.m.

Search within the validate package
Search all R packages, documentation and source code