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

Value

An environment.

Author(s)

Philippe Grosjean <phgrosjean@sciviews.org>

Examples

        getEnvironment(1)
        getEnvironment(length(search())) # "package:base" => NULL

[Package svMisc version 0.8-2 Index]