Description Usage Arguments Note Examples
Based on dist. Additionally
it can handle correlation-based distances and 
has argument for imputation of NA distances. To
avoid confusion with stats::dist all the
default settings are such that it performs equivalently
to the aforementioned one.
1  | 
x | 
 a numeric matrix  | 
method | 
 the distance measure to be used. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary", "minkowski", "pearson", "kendall", "spearman". Any unambiguous substring can be given.  | 
na.avg | 
 logical if yes, then NA distance will be imputed with average distance value. Default is FALSE.  | 
... | 
 arguments of   | 
In the current set-up
corrlation values -1, 0 and 1 correspond to
distances 1, 0.5 and 1, respectively.
R=1  -> dist=0 
R=0  -> dist=0.5 
R=-1 -> dist=1 
1 2 3 4  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.