On Tue, Jan 19, 2010 at 5:37 PM, Charles C. Berry <cberry@tajo.ucsd.edu>wrote:

>
>> Note:
>>
>>   i <- 20
>>>  bquote(y ~ poly(x,.(i)))
>>>
>> y ~ poly(x, 20)
>>
>>
 I see it now. bquote(y~poly(x,.(i))) gets it's 'i' there and then, sticks
it in the returned expression as the value '20', so any further evaluations
get poly(x,20). This is reminiscent of the way macro languages work...

Thanks,

Barry

-- 
blog: http://geospaced.blogspot.com/
web: http://www.maths.lancs.ac.uk/~rowlings
web: http://www.rowlingson.com/
twitter: http://twitter.com/geospacedman
pics: http://www.flickr.com/photos/spacedman

	[[alternative HTML version deleted]]

