Description Usage Arguments Details Value See Also
View source: R/row_pair_apply.R
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.
1 | correctGreater(criterion_col, output_column_name = "CorrectGreater")
|
criterion_col |
The integer index of the criterion in test_data. |
output_column_name |
An optional string |
This is meant to be used to measure the performance of heuristics
wrapped with heuristics
.
An object that implements createFunction. Users will generally not use this directly– rowPairApply will.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.