[R] scoping rules for 'for' [was - Re: for/if loop ]
davidr at rhotrading.com
davidr at rhotrading.com
Thu Jan 29 18:42:41 CET 2009
The lines below made me understand clearly. Maybe they are already in
some documentation,
but if not, it might help others to avoid my misunderstanding.
Thanks to all for the clarifications.
-- David
-----Original Message-----
From: Duncan Murdoch [mailto:murdoch at stats.uwo.ca]
Sent: Thursday, January 29, 2009 9:54 AM
To: David Reiner <davidr at rhotrading.com>
Cc: Henrik Bengtsson; r-help at r-project.org; SnowManPaddington
Subject: [SPAM] - Re: [R] scoping rules for 'for' [was - Re: for/if loop
] - Found word(s) list error in the Text body
<snip>
Feel free to do what you like to the variable within the
loop (though you might cause Luke to grind his teeth when it messes up
his compiler). It will be set to the next value in the 1:10 vector the
next time it comes back to the top.
<snip>
Duncan Murdoch
More information about the R-help
mailing list