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
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
2 matches
Mail list logo