
Get the code identifiers a code's descendents
Source:R/get_childCodeIds.R, R/get_descendentCodeIds.R
get_childCodeIds.RdGet the code identifiers of all children, or all descendents (i.e. including grand-children, grand-grand-children, etc) of a code with a given identifier.
Usage
get_childCodeIds(
x,
parentCodeId,
childrenOnly = TRUE,
returnNodes = FALSE,
returnPaths = FALSE,
includeParentCode = FALSE
)
get_descendentCodeIds(x, parentCodeId, includeParentCode = FALSE)Arguments
- x
The parsed sources object
- parentCodeId
The code identifier of the parent code
- childrenOnly
Whether to only return 'immediate' / 'direct' children, or the full descendancy (including grand-children, grand-grand children, 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.
- includeParentCode
Whether to include the parent code identifier in the result