Learn R Programming

DEXiR (version 1.0.2)

evaluation_order: 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())

Value

A character vector of attribute IDs.

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.

See Also

evaluate()

Examples

Run this code
# 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")

Run the code above in your browser using DataLab