[R] Assign

Thomas Lumley tlumley at u.washington.edu
Thu Apr 5 17:04:37 CEST 2001

On Thu, 5 Apr 2001, Nkosinathi ZWANE wrote:

> What is the R equivalent of "frame" used in the function "assign" in S+.

The pos= and envir= arguments perform this function.

An environment is roughly the equivalent of a frame, and you can assign
into the global environment with env=.GlobalEnv, the parent environment
with env=sys.frame(sys.parent()), the second position in the search() list
with pos=2, and so on.


Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list