| check_that {validate} | R Documentation |
Simple data validation interface
check_that(dat, ...)
dat |
an R object carrying data |
... |
a comma-separated set of validating expressions. |
An object of class validation
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.
Other validation-methods:
aggregate,validation-method,
all,validation-method,
any,validation-method,
barplot,validation-method,
compare(),
confront(),
event(),
names<-,rule,character-method,
plot,validation-method,
sort,validation-method,
summary(),
validation-class,
values()
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)