Create Perpendicular Transects from Line

perpendicular_transects(ls = sf::st_linestring(), length = numeric())

Arguments

ls

An sfc linestring geometry collection defining a stream or profile line along which to generate transects.

length

The length of each transect to create, which typically should be wide enough to span the streamway or valley in question.

Value

An sfc linestring geometry collection of perpendicular transect lines, one for each pair of subsequent points in ls