Learn R Programming

svMisc (version 0.9-60)

assignTemp: Assign a temporary variable in the TempEnv environment

Description

The function assigns a variable to TempEnv, an environment dedicated to temporary variables (especially useful for GUIs).

Usage

assignTemp(x, value, replace.existing = TRUE)

Arguments

x
the name of the variable.
value
the value of the variable.
replace.existing
do we replace an existing variable?

concept

temporary variables

See Also

TempEnv, changeTemp, getTemp, rmTemp, existsTemp, addTemp, tempvar

Examples

Run this code
assignTemp("test", 1:10)
## Retrieve this variable
getTemp("test")

Run the code above in your browser using DataLab