Turns pairs of columns of one or several subject tables (one row per
subject) into long paired differences x - y, ready for
ExactPairedTests().
Arguments
- data
A data frame, or a named list of data frames (for example several summary tables of the same subjects).
- id
Subject column, unique within each table; not named
x,yordifference.- pairs
List of pair specifications, each a list with
name(label of the difference),xandy(column names;y = NULLkeepsxunchanged) and, whendatais a list,table(element name). Further scalar fields (for exampleexpected = "less") become columns.- name
Name of the output label column.
Value
A data frame with name, the subject column, x, y,
difference and any extra fields, pairs in the given order and subjects
in table order.