closest_lake_distance.Rd
Find the distance to the closest upstream lake, the number of upstream lakes, and the area of upstream lakes
closest_lake_distance(lines, lakes, outlet, size_threshold = 4,
map = FALSE)
sf lines object
sf polygon object
integer row index of outlet reach relative to lines
numeric size above which to consider as a lake
logical show a map output of the results?
a list with the following elements:
Closest lake distance
Number of upstream lakes
Upstream lake area