The R Project SVN R

Rev

Rev 61150 | Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61150 Rev 61509
Line 1... Line 1...
1
% File src/library/base/man/as.environment.Rd
1
% File src/library/base/man/as.environment.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2010 R Core Team
3
% Copyright 1995-2012 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{as.environment}
6
\name{as.environment}
7
\alias{as.environment}
7
\alias{as.environment}
8
\title{ Coerce to an Environment Object }
8
\title{ Coerce to an Environment Object }
Line 14... Line 14...
14
\usage{
14
\usage{
15
as.environment(x)
15
as.environment(x)
16
}
16
}
17
\arguments{
17
\arguments{
18
  \item{x}{an \R object to convert.  If it is already an
18
  \item{x}{an \R object to convert.  If it is already an
19
    environment, just return it.  If it is a number, return the
19
    environment, just return it.  If it is a positive number, return the
20
    environment corresponding to that position on the search list.  If
20
    environment corresponding to that position on the search list. If it
-
 
21
    is \code{-1}, the environment it is called from.  If
21
    it is a character string, match the string to the names on the
22
    it is a character string, match the string to the names on the
22
    search list.
23
    search list.
23
 
24
 
24
    If it is a list, the equivalent of \code{\link{list2env}(x,
25
    If it is a list, the equivalent of \code{\link{list2env}(x,
25
      parent = emptyenv())} is returned.
26
      parent = emptyenv())} is returned.