Learn R Programming

emuR (version 2.4.0)

duplicate_level: 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

Run this code
if (FALSE) {

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

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

}

Run the code above in your browser using DataLab