View source: R/add_pathlength.R
add_pathlength | R Documentation |
Generates the main path length to a basin's terminal path.
Requires id, toid, and length_km hydroloom compatible attributes.
add_pathlength(x)
## S3 method for class 'data.frame'
add_pathlength(x)
## S3 method for class 'hy'
add_pathlength(x)
x |
data.frame network compatible with hydroloom_names. |
data.frame containing pathlength_km
x <- sf::read_sf(system.file("extdata/new_hope.gpkg", package = "hydroloom"))
x <- add_toids(x)
x <- add_pathlength(x)
plot(x["Pathlength"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.