[R-sig-Geo] Convert SpatialGridDataFrame to gridTopology object

Roger Bivand Roger.Bivand at nhh.no
Tue Jul 14 16:34:53 CEST 2009


On Tue, 14 Jul 2009, Paulo E. Cardoso wrote:

> How can I convert one to another?
>
library(sp)
data(meuse.grid)
coordinates(meuse.grid) <- c("x", "y")
gridded(meuse.grid) <- TRUE
fullgrid(meuse.grid) <- TRUE
class(meuse.grid)
grd <- slot(meuse.grid, "grid")
class(grd)

> ____________
>
> Paulo E. Cardoso
>
>
>
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list