rmTemp {svMisc}R Documentation

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!

Author(s)

Philippe Grosjean <phgrosjean@sciviews.org>

See Also

TempEnv, assignTemp, changeTemp, getTemp, existsTemp, addTemp

Examples

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

[Package svMisc version 0.9-46 Index]