Learn R Programming

SciViews (version 0.8-8)

getEnvironment: 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.

Examples

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

Run the code above in your browser using DataLab