chunkfam: Get children and siblings of tree entries and chunks.

getChildrenOfEntryR Documentation

Get children and siblings of tree entries and chunks.

Description

Get children and siblings of tree entries and chunks.

Usage

getChildrenOfEntry(treeEntry, treeEntryDF)

getChildrenOfChunk(chunkID, chunkDF, treeEntryDF)

getChildrenOfChunkIf(chunkID, chunkDF, treeEntryDF, cond = expr(TRUE))

getSiblingsOfEntry(treeEntry, treeEntryDF)

getSiblingsOfChunk(chunkID, chunkDF, treeEntryDF)

getSiblingOfChunkIf(chunkID, chunkDF, treeEntryDF, cond = expr(TRUE))

Arguments

treeEntry

A treeEntry ID.

treeEntryDF

A treeEntryDF from a rezrObj. Must be a rezrDF, not a list; combineLayers() can be used to combine multiple rezrDFs.

chunkID

A chunk ID.

chunkDF

A chunkDFfrom a rezrObj, Must be a rezrDF, not a list; combineChunks() or combineTokenChunk() can be used to combine multiple rezrDFs. You must have run getAllTreeCorrespondences() on it beforehand, i.e. a treeEntry column must exist. Also, both parents and children (for child-related functions) and all relevant siblings (for sibling-related functions) must reside in the chunkDF.

cond

A condition using columns from the chunkDF.

Value

A list of IDs of siblings or children

Examples

sbc007 = getAllTreeCorrespondences(sbc007, "chunk")
getSiblingsOfChunk("33EAD4C986974", sbc007$chunkDF$refexpr, sbc007$treeEntryDF$default)
getChildrenOfChunk("13AACBE0BB38A", combineTokenChunk(sbc007), sbc007$treeEntryDF$default)

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