inst/maps/demoGrid.R

library(sp)
library(maptools)
grdField <- expand.grid(s1 = 1:100, s2 = 1:50)
grdField$id <- 1
coordinates(grdField) <- ~ s1 * s2
gridded(grdField) <- TRUE
writeAsciiGrid(x = grdField, fname = "demoGrid.asc")

Try the spcosa package in your browser

Any scripts or data that you put into this service are public.

spcosa documentation built on May 29, 2017, 10:16 p.m.