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. The- work 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@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.