pulldiag: Pull out the diagonal from a distance matrix

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

View source: R/pulldiag.R

Description

Pull out the diagonal from a distance matrix calculated by distee (that is, self-self distances).

Usage

1

Arguments

d

A distance matrix calculated by distee.

Details

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

Value

A vector with the self-self distances.

Author(s)

Karl W Broman, [email protected]

See Also

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

Examples

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



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

# pull out the self-self distances
d_selfself <- pulldiag(d)

# samples with smallest self-self correlation
sort(d_selfself)[1:10]

kbroman/lineup documentation built on April 3, 2018, 8:59 a.m.