getEnvironment {svMisc}R Documentation

Get an environment, knowing its position

Description

Given a position in the search path, the corresponding environment is returned.

Usage

getEnvironment(pos)

Arguments

pos The position in the search path. If pos = -1, then the parent environment is returned.

Value

An environment.

Author(s)

Philippe Grosjean <phgrosjean@sciviews.org>

Examples

getEnvironment(1)
getEnvironment(length(search())) # base environment

[Package svMisc version 0.9-46 Index]