R/listParents.R
listParents.Rd
Recursive function for finding all parents of child location
listParents(loc_code = NULL, parent_child = NULL)
Code of child location, contained in `parent_child`
dataframe with at least `parent` and `child` columns. Can be created with `buildParentChild()` function.
character vector of all sites leading to `loc_code` site.
Kevin See
listParents() #> Error in listParents(): !is.null(loc_code) is not TRUE