omitdiag: Replace the diagonal in a distance matrix with missing values

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/omitdiag.R

Description

Replace the diagonal (that is, self-self distances) from a distance matrix calculated by distee or disteg with missing values (so that only self-nonself distances are left).

Usage

1

Arguments

d

A distance matrix calculated by distee or disteg.

Details

We use the row and column names to identify which entries are self-self.

Value

A matrix of the same form as the input, but with self-self distances replaced with NA.

Author(s)

Karl W Broman, [email protected]

See Also

pulldiag, distee, disteg, summary.lineupdist, plot2dist, plot.lineupdist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(expr1, expr2)



# distance as RMS difference
d <- distee(expr1, expr2)

# focus on the self-nonself distances
# (replace self-self distances with NA)
d_selfnonself <- omitdiag(d)

kbroman/lineup documentation built on Dec. 4, 2017, 11:41 p.m.