correctGreater: Creates function indicating whether row1[col] > row2[col].

Description Usage Arguments Details Value See Also

View source: R/row_pair_apply.R

Description

Using rowPairApply, this can generate a column indicating the the correct direction of the criterion in comparing row 1 vs. row2 for all row pairs in test_data. 1 indicates row 1's criterion > row 2's criterion 0 indicates they are equal -1 indicates row 2's criterion is greater By default, the output column is called "CorrectGreater," but you can override the name with output_column_name.

Usage

1
correctGreater(criterion_col, output_column_name = "CorrectGreater")

Arguments

criterion_col

The integer index of the criterion in test_data.

output_column_name

An optional string

Details

This is meant to be used to measure the performance of heuristics wrapped with heuristics.

Value

An object that implements createFunction. Users will generally not use this directly– rowPairApply will.

See Also

heuristics is the wrapper to get the predicted greater row in the row pair for each heuristic passed in to it.

rowPairApply which has an example of using this.


heuristica documentation built on Sept. 8, 2021, 9:08 a.m.