dot-mergeAttributesAspect: Merge two *AttributeAspects

.mergeAttributesAspectR Documentation

Merge two *AttributeAspects

Description

Some aspects like NodeAttributesAspect or EdgeAttributesAspect use a key-value scheme. This function helps in merging while avoiding repetition.

Usage

.mergeAttributesAspect(
  firstAspect,
  secondAspect,
  replace = TRUE,
  stopOnDuplicates = FALSE,
  required = c("propertyOf", "name"),
  optional = "subnetworkId",
  .log = c()
)

Arguments

firstAspect

*AttributeAspect object; first aspect.

secondAspect

*AttributeAspect object; second aspect.

replace

logical (default: TRUE); should duplicate keys be replaced with values of the secondAspect

stopOnDuplicates

logical (default: FALSE); whether to stop, if duplicate keys are found

required

character (optional); names of required column names

optional

character (optional); names of optional column names

.log

character (optional); origin of the data used for error logging

Value

*AttributeAspect object

Note

Internal function only for convenience

See Also

.mergeIdAspect, .createAttributeAspect

Examples

NULL

frankkramer-lab/RCX documentation built on Feb. 4, 2023, 5:12 p.m.