Learn R Programming

validate (version 1.1.5)

any,validation-method: Test if any validation resulted in TRUE

Description

Test if any validation resulted in TRUE

Usage

# S4 method for validation
any(x, ..., na.rm = FALSE)

Arguments

x

validation object (see confront).

...

ignored

na.rm

[logical] If TRUE, NA values are removed before the result is computed.

See Also

Other validation-methods: aggregate,validation-method, all,validation-method, barplot,validation-method, check_that(), compare(), confront(), event(), names<-,rule,character-method, plot,validation-method, sort,validation-method, summary(), validation-class, values()

Examples

Run this code
val <- check_that(women, height>60, weight>0)
any(val)

Run the code above in your browser using DataLab