Hi,
I have two problem with a for looping using R Version 2.1.1 (2005-06-20) on a
Debian Linux Testing.
The first problem: warnings messages
Look:
xcoord <- 5
ycoord <- 5
indice <- 1
for(i in c(1:5)) {indice <- indice+1;xcoord[indice] <- xcoord+i;
ycoord[indice] <- ycoord }
Warning messages:
1: number of items to replace is not a multiple of replacement length
2: number of items to replace is not a multiple of replacement length
3: number of items to replace is not a multiple of replacement length
4: number of items to replace is not a multiple of replacement length
5: number of items to replace is not a multiple of replacement length
6: number of items to replace is not a multiple of replacement length
7: number of items to replace is not a multiple of replacement length
8: number of items to replace is not a multiple of replacement length
The results are OK, but I dont understand the warning message