Create a list of braid IDs containing crosswalk_ids in each braid
get_braid_list.Rd
Find and uniquely identify braids in a network of flowlines, given an sf dataframe containing crosswalk_id and sf linestring geometries, 'find_braids()" identifies braids as cycles in the graph representation of the river network.
Arguments
- network
The network object representing the river network.
- crosswalk_id
unique ID column name
- verbose
Logical indicating whether to display verbose messages during the braid detection process.
Examples
if (FALSE) {
net <- nhdplusTools::navigate_network(
start = 101,
mode = "UT",
distance_km = 100
)
net <- dplyr::select(net, comid, divergence, totdasqkm, fromnode, tonode, terminalpa)
# get a dataframe of COMIDs and braid IDs
braids <- get_braid_list(network = net, crosswalk_id = "comid")
}