Re: [R] How can I access the list argument within a "for" function call

From: Mike Rowe <mwrowe_at_gmail.com>
Date: Mon, 24 Nov 2008 12:34:12 -0800 (PST)

It looks to me like what I want to do isn't possible. I've been reading the "R Language Definition" manual more, and have realized that the "for" function is a .Primitive, not an enclosure. This means that its arguments are passed by value, so I don't think it is possible to access them from within the body of the function. Thework  around for what I wanted to do works, so it doesn't much matter.

Just didn't want to waste anybody's time trying to answer this...

Thanks,
Mike



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 25 Nov 2008 - 08:26:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 25 Nov 2008 - 09:30:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive