Re: [R-sig-Geo] SpatialPoints problem

2007-09-30 Thread Johan Van de Wauw
On 9/30/07, Stoitchko Kalenderski <[EMAIL PROTECTED]> wrote: > Hi All, > I am trying to create a grid but something getting wrong > here is the code > > rm(list=ls()) > library(maptools) > library(rgdal) > > options("digits"=22) > lat=seq(from= -123.4, to= -121.4, length=20) > long=seq(from=48.95,

[R-sig-Geo] SpatialPoints problem

2007-09-30 Thread Stoitchko Kalenderski
Hi All, I am trying to create a grid but something getting wrong here is the code rm(list=ls()) library(maptools) library(rgdal) options("digits"=22) lat=seq(from= -123.4, to= -121.4, length=20) long=seq(from=48.95, to=49.5, length=10) #generates the grid grd = expand.grid(lat,long) sp_grd <- S