get_pathlength {nhdplusTools}R Documentation

Get Path Length

Description

Generates the main path length to a basin's terminal path.

Usage

get_pathlength(x)

Arguments

x

data.frame with ID, toID, length columns.

Value

data.frame containing pathlength for each ID

Examples

source(system.file("extdata", "walker_data.R", package = "nhdplusTools"))

fl <- dplyr::select(prepare_nhdplus(walker_flowline, 0, 0),
                    ID = COMID, toID = toCOMID, length = LENGTHKM)

get_pathlength(fl)


[Package nhdplusTools version 1.2.1 Index]