evaluation_order {DEXiR} | R Documentation |
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.
evaluation_order(att, prune = list())
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. |
A character vector of attribute IDs.
# 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")