Calculate different types of distance (among cols)

calcdist(B, method = "pearson")

Arguments

B

A matrix

method

Method for distance matrix calculation, can be chosen from "gower", "euclid", "pearson", "spearman" and "Atchison"

Value

Transformed matrix.