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?

-- 
-Tony

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to