Description Usage Arguments Value Examples
View source: R/create_buffer.R
Function to create a buffer around a SpatialPolygons or SpatialPolygonsDataFrame
object. This is a wrapper for gBuffer()
function from package rgeos
adding transformation of planar coordinates to appropriate projected coordinates
to enable creation of buffer.
1 | create_buffer(x, buffer, country)
|
x |
A class SpatialPolygons or SpatialPolygonsDataFrame object defining the area to be buffered |
buffer |
A numeric value for distance (in kilometres) to expand the
borders of the given spatial object |
country |
Name of country where sampling area is located. This is used
to determine the appropriate UTM projection to transform |
A SpatialPolygons with the same CRS as x
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.