gBufferDS: Wrapper for gBuffer() function from rgeos package

Description Usage Arguments Details Value Author(s)

View source: R/gBufferDS.R

Description

This function is a wrapper for the gBuffer() function from the rgeos package

Usage

1
gBufferDS(input, by_id = FALSE, ip_width)

Arguments

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

Details

See the gBuffer() function from rgeos package for more details

Value

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

Author(s)

Bishop, T.


tombisho/dsGeo documentation built on May 14, 2020, 1:39 a.m.