powered by
Computes pairwise differences.
pair.diff(X)
Matrix containing the differences.
a numeric matrix.
Seija Sirkia
The function computes all differences of row i and row j with i < j. The function is a wrapper to a C function to do the computation quickly and does no checks concerning the input.
pair.prod, pair.sum
pair.prod
pair.sum
X <- matrix(1:10, ncol = 2, byrow = FALSE) pair.diff(X)
Run the code above in your browser using DataLab