requery_hier | R Documentation |
Function to requery the hierarchical context of a segment list queried from an emuDB
requery_hier(
emuDBhandle,
seglist,
level,
collapse = TRUE,
resultType = "tibble",
calcTimes = TRUE,
timeRefSegmentLevel = NULL,
verbose = FALSE
)
emuDBhandle |
emuDB handle as returned by |
seglist |
segment list to requery on (type: emuRsegs) |
level |
character string: name of target level |
collapse |
collapse the found items in the requested level to a sequence (concatenated with ->).
If set to |
resultType |
type of result (either 'tibble' == default or 'emuRsegs') |
calcTimes |
calculate times for resulting segments (results in |
timeRefSegmentLevel |
set time segment level from which to derive time information. It is only necessary to set this parameter if more than one child level contains time information and the queried parent level is of type ITEM. |
verbose |
be verbose. Set this to |
A segment is defined as a single item or a chain of items from the respective level, e.g.
if a level in a bundle instance has labels 'a', 'b' and 'c' in that order, 'a' or 'a->b' or 'a->b->c'
are all valid segments, 'a->c' is not. For each segment of the input segment list seglist
the function checks the start and end item for hierarchically linked items in the given target
level, and based on them constructs segments in the target level. As the start item in the resulting
segment the item with the lowest sequence index is chosen; for the end item that with the highest
sequence index. If the parameter collapse
is set to TRUE
(the default), it is guaranteed
that result and input segment list have the same length (for each input
segment one or multiple segments on the target level was found). If multiple linked segments where found
they are collapsed into a sequence of segments ('a->b->c') and if no linked items where found an NA row
is inserted.
result set object of class emuRsegs or tibble
emuR::requery_hier
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.