Last chance! 50% off unlimited learning
Sale ends in
polygonFromExtent(bndbox, sp=TRUE)
TRUE
, the output will be a SpatialPolygons object (sp package). Otherwise a matrix of coordinates is returnedcellsFromExtent
, extent
, SpatialPolygons
r <- raster()
e <- extent(r)
pol <- polygonFromExtent(e)
Run the code above in your browser using DataLab