Learn R Programming

svMisc (version 0.9-46)

existsTemp: Determine if a variable exists in TempEnv

Description

Does a variable exist in the TempEnv environment?

Usage

existsTemp(x, mode = "any")

Arguments

x
The name of the variable (character string)
mode
The mode of the seeked variable

Value

  • TRUE if the variable exists in TempEnv (and is of the correct mode), FALSE otherwise.

See Also

TempEnv, assignTemp, changeTemp, getTemp, rmTemp, addTemp

Examples

Run this code
assignTemp("test", 1:10)
# Check if this variable exists
existsTemp("test")
# Remove it
rmTemp("test")
# Does it still exist?
existsTemp("test")

Run the code above in your browser using DataLab