buffer_area: Get buffered area

View source: R/buffer_area.R

buffer_areaR Documentation

Get buffered area

Description

[Deprecated]

This function is deprecated because the functionality has been incorporated into the improved sfext::st_buffer_ext() function which uses a similar set of parameters.

Return an sf object of an area with a buffer applied to it. If no buffer distance is provided, a default buffer is calculated of one-eighth the diagonal distance of the bounding box (corner to corner) for the area. The metadata for the provided area remains the same.

Usage

buffer_area(area, dist = NULL, diag_ratio = NULL)

Arguments

area

sf object.

dist

buffer distance in meters. Optional.

diag_ratio

ratio to set map extent based diagonal distance of area's bounding box. Ignored when dist is provided.


elipousson/mapbaltimore documentation built on Nov. 11, 2024, 8:25 p.m.