View source: R/selection_funks.R
getPairsFromDistForIndices | R Documentation |
k
in the
argument dist.obj
. E.g. you might want to know which pairs have
maximum distance: getPairsFromDistForIndices(which(x.dist ==
max(x.dist)), x.dist)
will help you out. Code taken from this post:
https://stackoverflow.com/questions/39005958/r-how-to-get-row-column-subscripts-of-matched-elements-from-a-distance-matriIdentifies the pairs that match the argument indices k
in the
argument dist.obj
. E.g. you might want to know which pairs have
maximum distance: getPairsFromDistForIndices(which(x.dist ==
max(x.dist)), x.dist)
will help you out. Code taken from this post:
https://stackoverflow.com/questions/39005958/r-how-to-get-row-column-subscripts-of-matched-elements-from-a-distance-matri
getPairsFromDistForIndices(k, dist.obj)
k |
an integer vector holding the indices for which to identify the pairs. |
dist.obj |
An instance of |
An instance of base::matrix
with two columns in which each
row holds a pair. Cells can be NA
if the argument indices were not
valid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.