[R] Stranger Behavior -maybe not

Duncan Murdoch murdoch at stats.uwo.ca
Sun Oct 4 03:17:25 CEST 2009


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




More information about the R-help mailing list