Re: [R-sig-Geo] SpatialPixels - other implementations?

2007-06-07 Thread Michael Sumner
Thanks Roger. Roger Bivand wrote: > On Tue, 5 Jun 2007, Michael Sumner wrote: > > >> Hello, >> >> I'm interested in the origin of the idea behind sp's SpatialPixels. >> What other software/s implement this concept, of storing a sparse grid >> of pixels? >> > > Directly from the Cells obje

Re: [R-sig-Geo] spsample() ok with type= 'stratified', but gives error with 'random'

2007-06-07 Thread Roger Bivand
On Thu, 7 Jun 2007, Don MacQueen wrote: > I don't know enough to assess whether I have a misunderstanding or a mistake. > > spsample() with type='random' is giving an error, but succeeding with > type='stratified'. > > Maybe random sampling requires projection information and stratified doesn't

Re: [R-sig-Geo] spsample() ok with type= 'stratified', but gives error with 'random'

2007-06-07 Thread Olsen . Tony
You can also use the library spsurvey to do a random sample using a sp object or ESRI shapefile. It handles polygons, lines, and point spatial objects. Does stratified, unequal probability, and spatial balance. Anthony (Tony) R. Olsen AMB Branch Chief USEPA NHEERL Western Ecology Division 200 S

[R-sig-Geo] spsample() ok with type= 'stratified', but gives error with 'random'

2007-06-07 Thread Don MacQueen
I don't know enough to assess whether I have a misunderstanding or a mistake. spsample() with type='random' is giving an error, but succeeding with type='stratified'. Maybe random sampling requires projection information and stratified doesn't? I may have constructed my SpatialPolygonsDataFrame

Re: [R-sig-Geo] Dissolve grids

2007-06-07 Thread Edzer J. Pebesma
If they're SpatialPoints* or SpatialPixels*, use rbind on them. If they're in a SpatialGridDataFrame, first convert to pixels by fullgrid(x) = FALSE then rbind, then back with fullgrid(x) = TRUE hth, -- Edzer Kitty Lee wrote: > Thanks to Terry and Virgilio, I used both suggestions in creating

[R-sig-Geo] Dissolve grids

2007-06-07 Thread Kitty Lee
Thanks to Terry and Virgilio, I used both suggestions in creating the spatial simulation. Now I have another question I have simulate, say, 16 grids separately. Each has its distinct process. How can I combine (or dissolve) the 16 grids together to form one big study area? Thanks in advance