Calculate stream order ratio with GRASS

stream_order_ratio(lines, outlet, ...)

Arguments

lines

lines

outlet

outlet

...

options passed to rgrass7sf::initGRASS

Examples

if (FALSE) {
library(sf)

data(nhd_sub)

outlet_reach   <- terminal_reaches(network = nhd_sub, approve_all_dl = TRUE)
outlet_point   <- st_cast(st_line_sample(outlet_reach, sample = 1), "POINT")

stream_order_ratio(lines = nhd_sub, outlet = outlet_point)
}