dist2cov: Converts distance matrix to covarance one.

View source: R/dist2cov.R

dist2covR Documentation

Converts distance matrix to covarance one.

Description

This function takes a distance matrix and turns it into a covariance matrix following Gower (1966).

Usage

dist2cov(D)

Arguments

D

A pairwise, square, and symmetric distance matrix.

Value

A covariance matrix of the same size.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu


dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.