replace_itemLabels: Replace item labels. (A copy of the emuR function)

replace_itemLabelsR Documentation

Replace item labels. (A copy of the emuR function)

Description

Replace the labels of all annotation items, or more specifically of attribute definitions belonging to annotation items, in an emuDB that match the provided origLabels character vector which the corresponding labels provided by the newLabels character vector. The indicies of the label vectors provided are used to match the labels (i.e. origLabels[i] will be replaced by newLabels[i]).

Usage

replace_itemLabels(
  emuDBhandle,
  attributeDefinitionName,
  origLabels,
  newLabels,
  verbose = TRUE
)

Arguments

emuDBhandle

emuDB handle object (see load_emuDB)

attributeDefinitionName

name of a attributeDefinition of a emuDB where the labels are to be replaced

origLabels

character vector containing labels that are to be replaced

newLabels

character vector containing labels that are to replaced the labels of origLabels. This vector has to be of equal length to the origLabels vector.

verbose

Show progress bars and further information

See Also

emuR::replace_itemLabels


humlab-speech/reindeer documentation built on May 21, 2023, 4:43 p.m.