evaluation_order: evaluation_order

evaluation_orderR Documentation

evaluation_order

Description

Determine the evaluation order of attributes. Interpreted as a sequence, the order guarantees that whenever some attribute is reached as a candidate for evaluation, all the previous attributes have been already evaluated.

Usage

evaluation_order(att, prune = list())

Arguments

att

DexiAttribute. The starting point of evaluation.

prune

A character vector. May contain IDs of aggregate attributes at which the evaluation should stop, treating them as if they were basic attributes.

Value

A character vector of attribute IDs.

See Also

evaluate()

Examples

# Load "Car.dxi"
CarDxi <- system.file("extdata", "Car.dxi", package = "DEXiR")
Car <- read_dexi(CarDxi)

# Full evaluation order, starting with Car$root and without pruning
evaluation_order(Car$root)

# Evaluation order, starting with the TECH.CHAR. attribute
evaluation_order(Car$attrib("TECH.CHAR."))

# evaluation order, starting with Car$root and pruned at "PRICE"
evaluation_order(Car$root, prune = "PRICE")


DEXiR documentation built on Sept. 30, 2024, 9:39 a.m.