Rev 3988 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{get}\title{Return a Variable's Value}\usage{get(x, pos=-1, envir=pos.to.env(pos), mode="any", inherits=TRUE)}\alias{get}\arguments{\item{x}{a variable name (given as a quoted string).}\item{pos}{position in search list, can be numerical or a quoted string.}\item{envir}{the environment to be used.}\item{mode}{the type of object sought.}\item{inherits}{should the enclosing frames ofthe environment be inspected?}}\value{This function searches the specified environment for abound variable whose name is given by the string \code{x}.If the variable's value is not of the correct\code{mode}, it is ignored.If \code{inherits} is \code{FALSE}, only the first frameof the specified environment is inspected.If \code{inherits} is \code{TRUE}, the search is continuedup through the parent frames until a bound value of the rightmode is found.Using a \code{NULL} environment is equivalent to usingthe current environment.}\seealso{\code{\link{exists}}.}\examples{get("\%o\%")}\keyword{data}