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