R: Retrieve distances from a '"dist"' object.

dist_get {qiimer} | R Documentation

## Retrieve distances from a '"dist"' object.

### Description

Retrieve distances from a '"dist"' object.

### Usage

    dist_get(d, idx1, idx2)

### Arguments

`d` | A distance matrix object of class '"dist"'.
`idx1, idx2` | Indicies specifying the distances to extract.

### Value

A vector of distances.

### Examples

    data(relmbeta_dist)
    dist_get(relmbeta_dist, "A1", "A2")
    dist_get(relmbeta_dist, "A1", c("A2", "A3", "A4", "A5"))
    dist_get(relmbeta_dist, c("A1", "A2", "A3"), c("B1", "B2", "B3"))

[Package qiimer version 0.9.4 Index]