buildParentChild: Build a Parent-Child table

View source: R/buildParentChild.R

buildParentChildR Documentation

Build a Parent-Child table

Description

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

Usage

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(s)

Kevin See

Examples

#buildParentChild()

KevinSee/PITcleanr documentation built on Feb. 27, 2024, 11:03 p.m.