listParents: List Parent Locations

View source: R/listParents.R

listParentsR Documentation

List Parent Locations

Description

Recursive function for finding all parents of child location

Usage

listParents(loc_code = NULL, parent_child = NULL)

Arguments

loc_code

Code of child location, contained in 'parent_child'

parent_child

dataframe with at least 'parent' and 'child' columns. Can be created with 'buildParentChild()' function.

Value

character vector of all sites leading to 'loc_code' site.

Author(s)

Kevin See

Examples

listParents()

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