View source: R/river_hierarchy.R
river_hierarchy | R Documentation |
Computes river hierarchies from a routed river network.
river_hierarchy(river, type = "strahler", riverID = "riverID")
river |
An 'sf' linestring feature representing a river network. |
type |
Type hierarchy to compute. Currently only |
riverID |
A character string which specifies the name of the column in
|
Returns the river network with added column with the selected river hierarchy.
## Not run:
library(hydrostreamer)
library(dplyr)
# load data
data(river)
# without prior routing
river <- river_hierarchy(river, riverID="ID")
# with routed network
routed_river <- river_network(river, riverID = "ID") %>%
river_hierarchy()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.