containChunk: Find chunks containing other chunks

findContainingChunkR Documentation

Find chunks containing other chunks

Description

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))

johnwdubois/rezonateR documentation built on Nov. 19, 2024, 11:17 p.m.