1 Sep 2009 02:31
Is this a bug?
Worik R <worikr <at> gmail.com>
2009-09-01 00:31:44 GMT
2009-09-01 00:31:44 GMT
This programme
for(T in 1:3){
for(j in 1:(5-1)){
for(k in (j+1):5){
for(l in (j+2):5){
print(paste("1 JKL:", j,k,l,sep=" "))
}
}
}
}
Prints out (among other things)
[1] "1 JKL: 4 5 6"
That is for(l in (j+2):5) sets l to 6 one more than the upper limit.
cheers
Worik
[[alternative HTML version deleted]]
RSS Feed