View source: R/children_of_parents.R
is_child_of_parent | R Documentation |
Given a single parent_id and a path_to_top_parent, returns TRUE if that parent_id is in the path.
is_child_of_parent(parent_id, path_to_top_parent)
parent_id |
[int] Location ID of parent to test |
path_to_top_parent |
[character] String of path to top parent from hierarchy |
[lgl] TRUE if parent_id is in path_to_top_parent
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.