Re: [R] Problem when index is given by a changing formula in loop - BUG??

2012-05-18 Thread R. Michael Weylandt
No it's not a bug in R. Indexing can only occur by integers so there's an automatic conversion to integer inside of `[`. Your "insert" variable is actually slightly less than 8 (note as.integer(insert) == 7) by some amount that's too small to print, but the computer still picks up on. More concre

[R] Problem when index is given by a changing formula in loop - BUG??

2012-05-18 Thread greatest.possible.newbie
Dear community, I have a little problem filling in a vector with loop output. I think the problem is the following: I am caluclating the index which indicates where the loop output should be placed at by a formula. But when I want to fill in or read out some specific index places this doesn't work