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
)
an `sf` object containing the `site_code` and location of all detection sites.
output from `queryFlowlines()` function.
should rows with NA as the parent be automatically removed? Default is `FALSE`.
should the RKM of the parent and child be added, based on PTAGIS metadata? Default is `FALSE`.
#buildParentChild()