Isn't the southern border of your boundary shapefile outside the extent of
your raster? hence there are no rows to extract.
On Mon, Oct 3, 2016 at 7:45 AM, Mauricio Zambrano Bigiarini <
mauricio.zambr...@ufrontera.cl> wrote:
> Dear list,
>
> I'm applying the 'crop' command of the raster pacakge
Dear list,
I'm applying the 'crop' command of the raster pacakge to subset a
RasterStack ('r') with a SpatialPolygonsDataFrame ('boundary'):
raster.crop <- crop(r, boundary, snap="out")
and what I get is:
Error: nrows > 0 is not TRUE
The summary of the two previous objects are:
> r
class