dist_multi_centroids {usedist}R Documentation

Make a new distance matrix of centroid distances between multiple groups

Description

Make a new distance matrix of centroid distances between multiple groups

Usage

dist_multi_centroids(d, g, squared = FALSE)

Arguments

d

A distance matrix object of class dist.

g

A factor representing the groups of items in d.

squared

If TRUE, return the squared distance between centroids.

Value

A distance matrix of distances between the group centroids.


[Package usedist version 0.4.0 Index]