get_terminal | R Documentation |
Get the ID of the basin outlet for each flowline. This function has been deprecated in favor of get_sorted.
get_terminal(x, outlets)
x |
two column data.frame with IDs and toIDs. Names are ignored. |
outlets |
IDs of outlet flowlines |
data.frame containing the terminal ID for each outlet
source(system.file("extdata", "walker_data.R", package = "nhdplusTools"))
fl <- dplyr::select(prepare_nhdplus(walker_flowline, 0, 0),
ID = COMID, toID = toCOMID)
outlet <- fl$ID[which(!fl$toID %in% fl$ID)]
get_terminal(fl, outlet)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.