Learn R Programming

diyar (version 0.4.0)

eval_sub_criteria: Evaluate a sub_criteria.

Description

Evaluate a sub_criteria.

Usage

eval_sub_criteria(x, ...)

# S3 method for sub_criteria eval_sub_criteria( x, x_pos = seq_len(max(attr_eval(x))), y_pos = rep(1L, length(x_pos)), check_duplicates = TRUE, ... )

Arguments

...

Arguments passed to methods.

x_pos

[integer]. Index of one half of a record pair

y_pos

[integer]. Index of one half of a record pair

check_duplicates

[logical]. If FALSE, does not check duplicate values. The result of the initial check will be recycled.

Value

logical; list

See Also

sub_criteria; reframe

Examples

Run this code
# NOT RUN {
# Consider two attributes
attr_1 <- c(1, 1, 0)
attr_2 <- c(2, 1, 2)

# Test for a match in either attribute
sub_cri_1 <- sub_criteria(attr_1, attr_2)
eval_sub_criteria(sub_cri_1)

# Test for a match in both attributes
sub_cri_2 <- sub_criteria(attr_1, attr_2, operator = "and")
eval_sub_criteria(sub_cri_2)
# }

Run the code above in your browser using DataLab