Currently, this function compares two columns. Patches to compare an arbitrary number of columns would be gladly accepted.
sigComparison(label, data = mktdata, columns, relationship = c("gt",
"lt", "eq", "gte", "lte"), offset1 = 0, offset2 = 0)
text label to apply to the output
data to apply comparison to
named columns to apply comparison to
one of c("gt","lt","eq","gte","lte","op") or reasonable alternatives
numeric offset to be added to the first column prior to comparison
numeric offset to be added to the second column prior to comparison
Comparison will be applied from the first to the second column in the columns
vector.
Relationship 'op' means 'opposite' side. Reasonable attempt will be made to match.