cit.dist: cit.dist

Description Usage Arguments Value Note Author(s) See Also

View source: R/cit.centroidsFunc.R

Description

This function computes and returns the distance matrix computed by using the specified distance measure to compute the distances between the rows of a data matrix.

Usage

1
2
3
4
5
6
7
cit.dist( x,
meth="pearson",
use="pairwise.complete.obs",
diag=FALSE,
upper=FALSE,
p=2,
replaceNA=TRUE) 

Arguments

x

a numeric matrix, data frame or "dist" object.

meth

the distance measure to be used. This must be one of "pearson","spearman","euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given.

use

method for computing covariance when NAs, choice between "pairwise.complete.obs", "all.obs" and "complete.obs" (cf cor function parameter)

diag

logical value indicating whether the diagonal of the distance matrix should be printed

upper

logical value indicating whether the upper triangle of the distance matrix should be printed

p

the power of the Minkowski distance.

replaceNA

a boolean indicating if NA value should be replace by

Value

required

Note

This is a contribution from the Tumor Identity Cards (CIT) program founded by the 'Ligue Nationale Contre le Cancer' (France): http://cit.ligue-cancer.net. For any question please contact CITR@ligue-cancer.net

Author(s)

Aurelien de Reynies, Mickael Guedj

See Also

dist


citccmst documentation built on May 30, 2017, 12:12 a.m.

Search within the citccmst package
Search all R packages, documentation and source code