duplicate_level: Duplicate level

View source: R/emuR-autoproc_annots.R

duplicate_levelR Documentation

Duplicate level

Description

Duplicate level of emuDB including all of its items and its various attributeDefinitions. If the duplicateLinks variable is set to TRUE all the links to and from the original items are duplicated.

Usage

duplicate_level(
  emuDBhandle,
  levelName,
  duplicateLevelName,
  duplicateLinks = TRUE,
  linkDuplicates = FALSE,
  linkDefType = "ONE_TO_ONE",
  verbose = TRUE
)

Arguments

emuDBhandle

emuDB handle object (see load_emuDB)

levelName

name of level in emuDB that is to be duplicated

duplicateLevelName

name given to newly duplicated level

duplicateLinks

if set to TRUE (the default) all the links to and from the original items are duplicated to point to the new items of the new duplicate level.

linkDuplicates

link the duplicated ITEMs to the originals. This can only be set to TRUE if duplicateLinks is set to FALSE.

linkDefType

type given to link definition. Only relevant if linkDuplicates is set to TRUE.

verbose

show progress bars and further information

See Also

load_emuDB

Examples

## Not run: 

##################################
# prerequisite: loaded ae emuDB 
# (see ?load_emuDB for more information)

# duplicate Phonetic level
duplicate_level(ae, levelName = "Phonetic",
                    duplicateLevelName = "Phonetic2")


## End(Not run)


emuR documentation built on Nov. 4, 2023, 1:06 a.m.