VOOZH about

URL: https://www.geeksforgeeks.org/r-language/create-an-expression-in-r-programming-expression-function/

⇱ Create an Expression in R Programming - expression() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Create an Expression in R Programming - expression() Function

Last Updated : 15 Jul, 2025
expression() function in R Language is used to create an expression from the values passed as argument. It creates an object of the expression class.
Syntax: expression(character) Parameters: character: Expression, like calls, symbols, constants
Example 1: Output:
expression(2^3)
[1] 8
Example 2: Output:
expression(sin(pi/2))
[1] 1
[1] "expression"
Comment

Explore