Learn R Programming

ChemoSpec (version 2.0-2)

rowDist: Compute Distance Between Rows of a Matrix

Description

This function is a wrapper to compute the distance between rows of a matrix using a number of methods. Some of these are available in package stats and some in amap. All this function does is determine which method is requested and then the distance calculation is done by the appropriate method.

Usage

rowDist(x, method)

Arguments

Value

An object of class dist.

Details

Methods c("euclidean", "maximum", "manhattan", "canberra","binary", "minkowski") are sent to function dist in package stats while methods c("pearson", "correlation", "spearman", "kendall") are handled by Dist in package amap. See the respective help pages for details.