Get the code identifiers of all parents, or all ascendents (i.e. including grand-parents, grand-grand-parents, etc) of a code with a given identifier.
Usage
get_parentCodeIds(
x,
childCodeId,
parentOnly = TRUE,
returnNodes = FALSE,
returnPaths = FALSE,
includeChildCode = FALSE
)Arguments
- x
The parsed sources object
- childCodeId
The code identifier of the parent code
- parentOnly
Whether to only return the 'immediate' / 'direct' parent, or the full ascendancy (including grand-parents, grand-grand parents, etc etc).
- returnNodes
For
get_childCodeIds(), set this toTRUEto return a list of nodes, not just the code identifiers.- returnPaths
Whether to return the paths (from the root) or the names.
- includeChildCode
Whether to include the child code identifier in the result
