Description Usage Arguments Value Examples
View source: R/traverse_flowlines.R
traverse hydrological network
1 2 3 |
max_distance |
maximum distance to traverse in km. If negative, traverse until the ocean (node 0) or max_steps is reached. |
start |
character node to start |
direction |
character; either "out" or "in" |
dataset |
which network dataset to traverse. May be either NHD high-res or NHD Plus v2. |
max_steps |
maximum traversal steps before terminating |
db_path |
manually specify path to flowtable database. Useful for avoiding database locks when running traversals in parallel. |
... |
options passed on to check_dl_file |
dataframe of nodes traversed, distance from the start node to each node, and the children of each node.
1 2 3 4 5 | ## Not run:
traverse_flowlines(1000, "141329377", "out", "nhdh")
# this example traverses until a cycle is found and the end of the network is reached.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.