Description Usage Arguments Details Value Author(s)
This function is a wrapper for the gBuffer() function from the rgeos package
1 |
input |
sp object as defined in package sp |
by_id |
Logical determining if the function should be applied across subgeometries (TRUE) or the entire object (FALSE) |
ip_width |
Distance from original geometry to include in the new geometry. Negative values are allowed. Either a numeric vector of length 1 when byid is FALSE; if byid is TRUE: of length 1 replicated to the number of input geometries, or of length equal to the number of input geometries |
See the gBuffer() function from rgeos package for more details
SpatialPolygons (or a SpatialPolygonsDataFrame if by_id=TRUE and input has a data.frame); if negative width(s) lead the object to disappear, NULL is returned for by_id FALSE, and component Polygons objects are dropped if empty for byid TRUE; the SpatialPolygonsDataFrame is subsetted by row.names or id if given to retain non-empty geometry rows
Bishop, T.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.