# GET DISTANCES
#' @include AllGenerics.R
NULL
#' @export
#' @rdname get_eigenvalues
#' @aliases get_distances,MultivariateAnalysis-method
setMethod(
f = "get_distances",
signature = c(x = "MultivariateAnalysis"),
definition = function(x, margin = 1) {
arkhe::assert_scalar(margin, "numeric")
if (margin == 1) {
d2 <- x@rows@distances
names(d2) <- x@rows@names
suppl <- x@rows@supplement
}
if (margin == 2) {
d2 <- x@columns@distances
names(d2) <- x@columns@names
suppl <- x@columns@supplement
}
d2
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.