Learn R Programming

svMisc (version 0.9-46)

rmTemp: Remove one or several temporary variable(s) from the TempEnv environment

Description

The function removes one or more variable(s) from TempEnv.

Usage

rmTemp(x)

Arguments

x
The name of the variable (character string), or a vector of characters with the name of all variables to remove from TempEnv.

Value

  • Return TRUE if variable existed and is deleted, and FALSE otherwise. For multiple variable, a vector of booleans is returned.

Warning

This command issues no error message if variable(s) do not exist in TempEnv!

See Also

TempEnv, assignTemp, changeTemp, getTemp, existsTemp, addTemp

Examples

Run this code
assignTemp("test", 1:10)
# Retrieve this variable
getTemp("test")
# Remove it
rmTemp("test")
# Try to retrieve it again
getTemp("test")

Run the code above in your browser using DataLab