is_child_of_parent: Helper function for children_of_parents.

View source: R/children_of_parents.R

is_child_of_parentR Documentation

Helper function for children_of_parents.

Description

Given a single parent_id and a path_to_top_parent, returns TRUE if that parent_id is in the path.

Usage

is_child_of_parent(parent_id, path_to_top_parent)

Arguments

parent_id

[int] Location ID of parent to test

path_to_top_parent

[character] String of path to top parent from hierarchy

Value

[lgl] TRUE if parent_id is in path_to_top_parent


epi-sam/SamsElves documentation built on June 12, 2025, 7 a.m.