Build a parent-child table based on site locations and the flowlines from NHDPlusV2 layer.

buildParentChild(
  sites_sf = NULL,
  flowlines = NULL,
  rm_na_parent = F,
  add_rkm = F
)

Arguments

sites_sf

an `sf` object containing the `site_code` and location of all detection sites.

flowlines

output from `queryFlowlines()` function.

rm_na_parent

should rows with NA as the parent be automatically removed? Default is `FALSE`.

add_rkm

should the RKM of the parent and child be added, based on PTAGIS metadata? Default is `FALSE`.

Author

Kevin See

Examples

#buildParentChild()