Skip to content
Prev 200600 / 398503 Next

:Problem with Looping

Hello,

Sometimes the looping (using "for") seems to skip some iterations.

An example:

arg <- matrix(NA,length(seq(.30,.5,.01)),1)
for (i in seq(.30,.5,.01)) {
arg[i*100-29] <- i
}
arg

What is the problem with this coding, please?

Thank you so much,