powered by
SpatialPixels(points)
with points of class SpatialPoints-class
"SpatialPoints"
"Spatial"
SpatialPixelsDataFrame-class
SpatialGrid-class
data(meuse.grid) pts = meuse.grid[c("x", "y")] y = SpatialPixels(SpatialPoints(pts)) class(y) y summary(y) plot(y)
Run the code above in your browser using DataLab