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

expr_is_a

Test that the expression itself is of a specific class.


Description

Returns TRUE if e$expr is of the given class.

Usage

expr_is_a(class)

Arguments

class

expected class of the given expression

Value

TRUE or FALSE

See Also

Examples

## Not run: 
# Test if the expression entered by a user is an assignment
#
expr_is_a('<-')

## 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.