calc_metrics.Rd
Calculate connectivity metrics
calc_metrics(lines, lakes, map = FALSE)
sf lines object
sf polygon object
logical show a map output of the results?
a list with the following elements:
Average link length
Stream order ratio
Closest lake distance
Number of upstream lakes
Upstream lake area
The units returned depend on the data source. Check with sf::st_crs
.