distDS: Computes the distance matrix of a given data set

View source: R/distDS.R

distDSR Documentation

Computes the distance matrix of a given data set

Description

This function is similar to the native R function from stats

Usage

distDS(df.name, method)

Arguments

df.name

is a string character of the data set (either a data.frame or a matrix)

method

specifies the method for the distance matrix calculation and can be either 'euclidean', 'maximum', 'manhattan', 'canberra', 'binary' or 'minkowski'

Details

The function computes the distance matrix of a data set with multiple variables.

Value

the object specified by the newobj argument of ds.dist or default name dist.newobj

Author(s)

Florian Schwarz for the German Institute of Human Nutrition


FlorianSchw/dsClusterAnalysis documentation built on Feb. 8, 2025, 10:31 a.m.