Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Antonio Paredes > Sent: Saturday, October 03, 2009 5:53 PM > To: r-help@r-project.org > Subject: [R] Stranger Behavior -maybe not > > Hello everyone, > > When I run a for loop I

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread Don McKenzie
Yes of course. I was sticking to R. On 3-Oct-09, at 7:42 PM, hadley wickham wrote: The point Duncan was making was "What other value would you expect it to have after incrementing from 1 to 200 and stopping"? Well, depending on the scoping rules of the language you are used to, you migh

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread hadley wickham
> The point Duncan was making was > > "What other value would you expect it to have after incrementing from 1 to > 200 and stopping"? Well, depending on the scoping rules of the language you are used to, you might expect i at the top-level to remain undefined. Hadley -- http://had.co.nz/ _

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread Don McKenzie
The point Duncan was making was "What other value would you expect it to have after incrementing from 1 to 200 and stopping"? On 3-Oct-09, at 6:39 PM, Antonio Paredes wrote: Thank you very much!!! Next time, if I know you are going to read the e-mail; I make sure to include an explanation

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread Antonio Paredes
Thank you very much!!! Next time, if I know you are going to read the e-mail; I make sure to include an explanation in the form of an answer to any issue that I'm inquiring about. On Sat, Oct 3, 2009 at 9:17 PM, Duncan Murdoch wrote: > On 03/10/2009 8:53 PM, Antonio Paredes wrote: > >> Hel

Re: [R] Stranger Behavior -maybe not

2009-10-03 Thread Duncan Murdoch
On 03/10/2009 8:53 PM, Antonio Paredes wrote: Hello everyone, When I run a for loop I noticed that the looping variable gets assigned the last value in the loop: For example, if I let h=200, and I run for(i in 1:h), i gets the value 200. What's wrong here? Nothing? Duncan Murdoch