Re: [R] Creating a geographical grid

2012-12-10 Thread Michael Sumner
You can do this with basic R functions: ## create vectors of the longitude and latitude values x <- seq(from = 24, to = 34, by = 0.025) y <- seq(from = -24, to = -14, by = 0.025) ## create a grid of all pairs of coordinates (as a data.frame) xy <- expand.grid(x = x, y = y) ## load the "foreign"

[R] Creating a geographical grid

2012-12-10 Thread Ulrik Bo Pedersen
I would like to create a geographical grid to have a sort of a reference grid for my georeferenced survey data. The grid should be in a xy format, wgs1984 with a 0.025 degree, alternatively 10km, resolution covering -14 to -24 S and 24 to -34 E (Zimbabwe). Additionally I need to be able to expor