Skip to contents

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
#> There is more than one tree entry match for the token 37EFCBECFD691. I will take the first match.
#> There is more than one tree entry match for the token 12D67756890C1. I will take the first match.
#> There is more than one tree entry match for the token 152560A5DE6AC. I will take the first match.
#> There is more than one tree entry match for the chunk 210FB26A315A. I will take the first match.
#> There is more than one tree entry match for the chunk 22273255D825D. I will take the first match.