Search notes:

R: Variables

When a variable is defined (x <- 42), the definition goes into the workspace.
The type of a variable is not fixed, it can change with a new assignment (R is a dynamically typed language).

Variable assignments

local_var   <-  42
global_var <<- "foo"
assign('x', 'eggs')
local_var_2  = "bar"
"baz" -> local_var_3
The latter two assignement forms (= and ->) are rarely seen.

Deleting/removing variables

Use rm

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...', 1745523717, '18.216.141.19', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/variable(50): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78