Re: [R] rasterize SpatialPolygon object using a RasterBrick object

2018-06-01 Thread Michael Sumner
I see this problem in 2.6-7 (version on CRAN) but it's now fixed in dev on RForge, you can try it out by installing from there, or from the Github mirror with devtools::install_github("rforge/raster/pkg/raster"). There's an imminent release to CRAN some time soon. Cheers, Mike. On Sat, 2 Jun 20

[R] rasterize SpatialPolygon object using a RasterBrick object

2018-06-01 Thread Dimitri Szerman
I am trying to rasterize a SpatialPolygon object by a RasterBrick object. The documentation of the raster::rasterize function explicitly says this is allowed. Here's what I am doing # load the raster package library("raster") # create a raster brick object using the example from the brick function