dissimilarities {analogue} | R Documentation |
Extracts a vector of dissimilarity coefficients from an object for further analysis.
dissimilarities(object, ...) dissim(object, ...) ## S3 method for class 'analog': dissimilarities(object, which = c("train", "analogs"), ...)
object |
an R object from which the dissimilarity values are to
be extracted. Currently only for objects of class "analog" . |
which |
character; which set of dissimilarities should be
extracted. One of "train" or "analogs" . |
... |
arguments passed to other methods. |
The function can be called using the much shorter name
"dissim"
.
A vector of dissimilarities.
Gavin L. Simpson
## continue the RLGH example from ?join example(join) ## analog matching between SWAP and RLGH core swap.analog <- analog(swapdiat, rlgh, method = "chord") swap.analog summary(swap.analog) ## compare training set dissimilarities with normals ## and derive cut-offs swap.dissim <- dissim(swap.analog) plot(swap.dissim)