Rev 15439 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{as.environment}\alias{as.environment}\title{ Coerce to an Environment Object }\description{Converts a number or a character string to the correspondingenvironment on the search path.}\usage{as.environment(object)}\arguments{\item{object}{ The object to convert. If it is already anenvironment, just return it. If it is a number, return theenvironment corresponding to that position on the search list. Ifit is a character string, match the string to the names on thesearch list.}}\value{The corresponding environment object.}\author{ John Chambers }\seealso{ \code{\link{search}} }\examples{as.environment(1) ## the global environmentas.environment("package:ctest")}\keyword{data}\keyword{environment}