buffer_circle: A circule function

Description Usage Arguments Value Examples

View source: R/buffer_circle.R

Description

Creates a circular buffer. Wrapper around sf::st_buffer()

Usage

1
buffer_circle(point, radius, ...)

Arguments

point

Cente point of the buffer, must equal to true in: sf::st_is(point, "POINT")

radius

Radius of the buffer (numeric)

...

Further arguments to give to sf::st_buffer()

Value

An object of class sfc_POLYGON

Examples

1
2
3
4
5
6
example_point = sf::st_point(c(1,2))
example_point = sf::st_sfc(example_point)
example_point = sf::st_sf(example_point)

buffer_circle(example_point, 200) -> circular_buffer
plot(circular_buffer)

buffeRs documentation built on Aug. 22, 2021, 9:07 a.m.