VOOZH about

URL: https://www.geeksforgeeks.org/r-language/check-if-an-object-is-an-expression-in-r-programming-is-expression-function/

⇱ Check if an Object is an Expression in R Programming - is.expression() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Check if an Object is an Expression in R Programming - is.expression() Function

Last Updated : 15 Jul, 2025
is.expression() function in R Language is used to check if the object passed to it as argument is of the expression class.
Syntax: is.expression(object) Parameters: object: Object to be checked
Example 1: Output:
[1] "sin(pi/2)"
[1] FALSE
Example 2: Output:
[1] 1
[1] TRUE
Comment

Explore