Re: [R] problem of subscript value from vector and list

2008-02-28 Thread John Kane
I think you are getting a rounding or truncating problem in the printing Try print[lon[x]) and see what you get --- Jingru Dai <[EMAIL PROTECTED]> wrote: > Hi, everyone > > I got some problems when trying to subscript the > value of vector and > list, by using calculated indices. > Here is t

[R] problem of subscript value from vector and list

2008-02-27 Thread Jingru Dai
Hi, everyone I got some problems when trying to subscript the value of vector and list, by using calculated indices. Here is the vector I am generated lon<-rep(0,886);lat<-rep(0,691) for (i in 1:886){ lon[i]<-112+0.05*(i-1) } for (i in 691:1){ lat[i]<--44.5+0.05*(691-i) } For a gi