assignTemp {svMisc}R Documentation

Assign a temporary variable in the TempEnv environment

Description

The function assigns a variable to TempEnv, an environment dedicated to temporary variables.

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?

Author(s)

Philippe Grosjean <phgrosjean@sciviews.org>

See Also

TempEnv, getTemp, rmTemp, existsTemp

Examples

        assignTemp("test", TRUE)
        # Retrieve this variable
        getTemp("test")

[Package svMisc version 0.8-2 Index]