mergeChunksWithTree: Relate table rows to tree entries covering the same tokens.

View source: R/tree.R

mergeChunksWithTreeR Documentation

Relate table rows to tree entries covering the same tokens.

Description

Relate table rows to tree entries covering the same tokens.

Usage

mergeChunksWithTree(
  rezrObj,
  treeEntryDF = NULL,
  addToTrack = F,
  selectCond = NULL
)

Arguments

rezrObj

The rezrObj object

treeEntryDF

A treeEntry data.frame, possibly filtered.

addToTrack

Do you want to add the chunks to the trackDF as well?

selectCond

The condition for selecting which chunk provides the field values.

Value

The rezrObj with additional rows for merged chunks. Original chunks stay behind. There will be a new column called combinedChunk. Combined chunks will get the value combined. Members of those chunks will get the value ⁠|infomember=COMBINEDCHUNKID⁠ (if they are providing the data for the combined chunk) or ⁠|member=COMBINEDCHUNKID⁠ (if they are not the data-providing chunk). treeEntry (through getAllTreeCorrespondences()) is required to be present in the chunkDF.

Examples

sbc007 = sbc007 %>% getAllTreeCorrespondences %>% mergeChunksWithTree

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