R: Pairwise Differences

pair.diff {ICSNP} | R Documentation

## Pairwise Differences

### Description

Computes pairwise differences.

### Usage

    pair.diff(X)

### Arguments

`X` | a numeric matrix.

### Details

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.

### Value

Matrix containing the differences.

### Author(s)

Seija Sirkiä, seija.sirkia@iki.fi

### See Also

`pair.prod`, `pair.sum`

### Examples

    X <- matrix(1:10, ncol = 2, byrow = FALSE)
    pair.diff(X)

[Package ICSNP version 1.1-0 Index]