Compute the dissimilarity matrix for a data sample
compute_distance_matrix.RdFunction to compute the dissimilarity matrix based on a specified metric
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 argumentmethodtodist, so check?proxy::distfor full details.