Search notes:

R function: substitute

substitute(x + y/sin(z), list('y' = 42))
#
# x + 42/sin(z)
Github repository about-R, path: /functions/substitute/env.R

typeof, class, mode

The type of the value returned by substitute is "language", the class and mode is "call":
s <- substitute( sin(x) ^ 2 + cos(y) )

typeof(s)
#
# [1] "language"

class (s)
#
# [1] "call"

mode  (s)
#
# "call"
Github repository about-R, path: /functions/substitute/typeof-class-mode.R
These returned strings are the same as those returned by quote.

See also

Index to (some) R functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1743436185, '3.15.137.45', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/substitute/index(62): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78