VOOZH about

URL: https://www.geeksforgeeks.org/r-language/convert-an-expression-to-a-string-in-r-programming-deparse-function/

⇱ Convert an Expression to a String in R Programming - deparse() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Convert an Expression to a String in R Programming - deparse() Function

Last Updated : 15 Jul, 2025
deparse() function in R Language is used to convert an object of expression class to an object of character class.
Syntax: deparse(expr) Parameters: expr: Object of expression class
Example 1: Output:
[1] "expression"
[1] "character"
Example 2: Output:
[1] 8
[1] "expression(2^3)"
Comment
Article Tags:

Explore