Rev 12256 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{pos.to.env}\alias{pos.to.env}\title{Convert Positions in the Search Path to Environments}\description{Returns the environment at a specified position in the search path.}\usage{pos.to.env(x)}\arguments{\item{x}{an integer between 1 and \code{length(search())}, the lengthof the search path.}}\details{Several \R functions for manipulating objects in environments (such as\code{\link{get}} and \code{\link{ls}}) allow specifying environmentsvia corresponding positions in the search path. \code{pos.to.env} isa convenience function for programmers which converts these positionsto corresponding environments; users will typically have no need forit.}\examples{pos.to.env(1) # R_GlobalEnv# the next returns NULL, which is how package:base is represented.pos.to.env(length(search()))}\keyword{utilities}