The river geometry may consist of multiple spatial features, these are optionally cropped using the area of interest, then merged after applying the buffer.
river_buffer(river, buffer_distance, bbox = NULL, side = NULL)An object of class sf::sfc_POLYGON
A simple feature geometry representing the river
Size of the buffer (in the river's CRS units)
Bounding box defining the extent of the area of interest
Whether to generate a single-sided buffer with a "flat" end.
This is only applicable if river is a (multi)linestring geometry.
Choose between NULL (double-sided), "right" and "left"