Learn R Programming

swirl (version 2.2.6)

expr_is_a: Returns TRUE if e$expr is of the given 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

Examples

Run this code
# Test if the expression entered by a user is an assignment
#
expr_is_a('<-')

Run the code above in your browser using DataLab