Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

any_of_exprs

Test that the user has entered one of several possible expressions.


Description

Returns TRUE if the expression the user has entered matches any of the expressions given (as character strings) in the argument.

Usage

any_of_exprs(...)

Arguments

...

any number of expressions, as character strings

Value

TRUE or FALSE

See Also

Examples

## Not run: 

# Test that a user has entered either cor(x, y) or cor(y, x)
any_of_exprs('cor(x, y)', 'cor(y, x)')

## End(Not run)

swirl

Learn R, in R

v2.4.5
MIT + file LICENSE
Authors
Sean Kross [aut, cre], Nick Carchedi [aut], Bill Bauer [aut], Gina Grdina [aut], Filip Schouwenaars [ctb], Wush Wu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.