dot-mergeAttributesAspect: Merge two *AttributeAspects

Description Usage Arguments Value Note See Also Examples

Description

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

Usage

1
2
3
4
5
6
7
8
9
.mergeAttributesAspect(
  firstAspect,
  secondAspect,
  replace = T,
  stopOnDuplicates = F,
  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

1

frankkramer-lab/RCX documentation built on July 14, 2021, 6:33 p.m.