siblingpos: Find the position of a chunk among its siblings in a tree.

addPositionAmongSiblingsR Documentation

Find the position of a chunk among its siblings in a tree.

Description

Find the position of a chunk among its siblings in a tree.

Usage

addPositionAmongSiblings(
  chunkDF,
  rezrObj,
  treeEntryDFAddress = NULL,
  cond = expr(TRUE)
)

addAllPositionsAmongSiblings(rezrObj, cond = expr(TRUE))

Arguments

chunkDF

The chunkDF to be edited.

rezrObj

The rezrObj containing the chunkDF.

treeEntryDFAddress

The address to the treeEntryDF layer that will be used. If left blank, all layers will be used.

cond

A condition for excluding siblings (for example, adjuncts and auxiliaries).

Value

The chunkDF with a column siblingPos giving the position of the chunk among its siblings in the tree.

Examples

sbc007 = getAllTreeCorrespondences(sbc007)
sbc007$chunkDF$refexpr = addPositionAmongSiblings(sbc007$chunkDF$refexpr, sbc007)

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