Learn R Programming

metan (version 1.19.0)

get_dist: Get a distance matrix

Description

[Stable]

Get the distance matrices from objects fitted with the function clustering(). This is especially useful to get distance matrices from several objects to be further analyzed using pairs_mantel().

Usage

get_dist(..., digits = 2)

Value

A list of class clustering.

Arguments

...

Object(s) of class clustering.]

digits

The number of significant figures. Defaults to 2.

Author

Tiago Olivoto tiagoolivoto@gmail.com

Examples

Run this code
# \donttest{
library(metan)
d <- data_ge2 %>%
      mean_by(GEN) %>%
      column_to_rownames("GEN") %>%
      clustering()
get_dist(d)
# }

Run the code above in your browser using DataLab