Description Usage Arguments Value Examples

Retrieve the distances between i and j from a 'dist' object.

1 |

`x` |
An object of class 'dist'. |

`i` |
Either a two column matrix of integer indices or a vector of indices that are paired with the corresponding elements in j. |

`j` |
A vector of indices where each element forms a pair with the corresponding element in argument i. |

`return_indices` |
Logical indicating whether a three column matrix containing the provided indices (columns 1 and 2) and their corresponding distances (column 3) should be returned. The default behavior is to return a vector of distances. |

A vector giving the distances between the provided indices.

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.