check_that: Simple data validation interface

Description Usage Arguments Value Details Examples

View source: R/confrontation.R

Description

Simple data validation interface

Usage

1

Arguments

dat

an R object carrying data

...

a comma-separated set of validating expressions.

Value

An object of class validation

Details

Creates an object of class validator and confronts it with the data. This function is easy to use in combination with the magrittr pipe operator.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
cf <- check_that(women, height>0, height/weight < 0.5)
cf
summary(cf)
barplot(cf)


## Not run: 
# this works only after loading the 'magrittr' package
women %>% 
  check_that(height>0, height/weight < 0.5) %>%
  summary()

## End(Not run)

validate documentation built on May 19, 2017, 1:30 p.m.

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.