add_linkDefinition | R Documentation |
Add / List / Remove new link definition to / of / from emuDB. A link definition
specifies the relationship between two levels, the
super-level and the sub-level. The entirety of all link
definitions of a emuDB specifies the
hierarchical structure of the database. For more information
on the structural elements of an emuDB see vignette(emuDB)
.
add_linkDefinition(emuDBhandle, type, superlevelName, sublevelName)
emuDBhandle |
emuDB handle as returned by |
type |
type of linkDefinition (either |
superlevelName |
name of super-level of linkDefinition |
sublevelName |
name of sub-level of linkDefinition |
Link type descriptions:
"ONE_TO_MANY"
A single ITEM of the super-level can be linked to multiple ITEMs of the sub-level
"MANY_TO_MANY"
Multiple ITEMs of the super-level can be linked to multiple ITEMs of the sub-level
"ONE_TO_ONE"
A single ITEM of the super-level can be linked to a single ITEM of the sub-level
For all link types the rule applies that no links are allowed to cross any other links. Further, a linkDefinition can not be removed, if there are links present in the emuDB.
emuR::add_linkDefinition
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.