stream_order: Calculate stream order with GRASS

View source: R/stream_order.R

stream_orderR Documentation

Calculate stream order with GRASS

Description

Calculate stream order with GRASS

Usage

stream_order(lines, outlet, ...)

Arguments

lines

lines

outlet

outlet

...

options passed to rgrass7sf::initGRASS

Examples

## Not run: 
library(sf)
library(mapview)

data(nhd_sub_lines)

outlet <- st_sf(data.frame(1), geometry = st_cast(st_line_sample(
               dplyr::filter(nhd_sub_lines, comid == "7718290"),
           sample = 1), "POINT"))

res <- stream_order(lines = nhd_sub_lines, outlet = outlet)
# mapview(res, zcol = "strahler")

## End(Not run)

jsta/streamnet documentation built on July 9, 2022, 9:02 p.m.