Find chunks containing other chunks
containChunk.Rd
Find chunks containing other chunks
Usage
findContainingChunk(containedDF, containerDF, proper = F)
addContainingChunk(containedDF, rezrObj, containerDFAdd)
Arguments
- containedDF
The rezrDF with contained chunks (may be a track/rez rezrDF)
- containerDF
The rezrDF with container chunks (may be a track/rez rezrDF)
- proper
Do you count only proper containment?
- rezrObj
The rezrObj for which you would like to add containing chunks.
Value
A vector of container chunks, each of which corresponds to one row in the containedDF (the first one is chosen in the case of multiple parents). Right now, we do not support criteria for choosing container chunk.
Examples
sbc007$chunkDF$verb = sbc007$chunkDF$verb %>% rez_mutate(containingRefexpr = findContainingChunk(sbc007$chunkDF$verb, sbc007$chunkDF$refexpr, proper = T))