Skip to contents

Function to compute the dissimilarity matrix based on a specified metric

Usage

compute_distance_matrix(data, sample_ids, metric = "euclidean")

Arguments

data

Sample of data.frame to be clustered

sample_ids

ids for the sample's observations

metric

A character specifying a predefined dissimilarity metric (like "euclidean" or "manhattan") or a self-defined dissimilarity function. Defaults to "euclidean". Will be passed as argument method to dist, so check ?proxy::dist for full details.

Value

Dissimilarity matrix for data sample