stream_order_ratio.Rd
Calculate stream order ratio with GRASS
stream_order_ratio(lines, outlet, ...)
lines
outlet
options passed to rgrass7sf::initGRASS
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)
}