Learn R Programming

SciViews (version 0.8-8)

existsTemp: Determine if a variable exists in TempEnv

Description

Does a variable exists in the temporary environment, TempEnv?

Usage

existsTemp(x, mode = "any")

Arguments

x
The name of the variable (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, getTemp, rmTemp

Examples

Run this code
assignTemp("test", TRUE)
	# Retrieve this variable
	existsTemp("test")
	# Remove it
	rmTemp("test")
	# Does it exists?
	existsTemp("test")

Run the code above in your browser using DataLab