Calculate average link length of stream network

avg_link_length(lines, simplify = FALSE)

Arguments

lines

sf linestring collection

simplify

logical run simplify_network prior to calculations?

Examples

if (FALSE) {
data(nhd_sub)
avg_link_length(nhd_sub)
}