Search notes:

R function: parse

Create expressions

parse(…) can be used to create an expression:
expr <- '7 * 6';
parsed <- parse(text = expr);
typeof(parsed);
#
#  "expression"

print(parsed);
#
#  expression(7 * 6)

eval(parsed);
#
#  42
Github repository about-R, path: /functions/parse/create-expression.R

Mode

The mode returned by parse is expression.
expr <- '7 * 6';
parsed <- parse(text = expr);
mode(parsed);
#
#  "expression"
Github repository about-R, path: /functions/parse/mode.R

See also

The R functions expression() and deparse().
The expression mode.
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...', 1758200744, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/parse(73): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78