[R] hclust question

Olivier Houix Olivier.Houix at ircam.fr
Fri Feb 23 16:03:56 CET 2001


Dear Ranjan
You can just use this:

dissimilarity <- as.dist(your-own-distance-matrix)
h <- hclust(dissimilarity, method = "complete")

your own distance matrix must be a dissimilarity matrix

Olivier Houix
Ranjan Maitra wrote:
> 
> Dear all,
> 
> I have a question with regard to the use of hclust. I would like to be
> able to specify my own distance matrix instead of asking R to compute
> the distance matrix for me. It is computationally easier for me this
> way. My question is: How can I get hclust to accept this?
> 
> Thanks,
> Ranjan
> 
> --
>  ***************************************************************************
>           Ranjan Maitra, Department of Mathematics and Statistics,
>      University of Maryland, Baltimore County, Baltimore, MD 21250, USA.
>  ***************************************************************************
> 
>   \|/         satyamevajayate         |      tamasomaajyotirgamaya      \|/
>   -*-                                 |                                 -*-
>   /|\       TRUTH SHALL PREVAIL       |      FROM DARKNESS TO LIGHT     /|\
> 
>  ***************************************************************************
>    Ph: 410-455-2436   FAX: 410-455-1066   http://www.math.umbc.edu/~maitra
>  ***************************************************************************
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-- 
Olivier Houix  <houix at ircam.fr>             tel: 01 44 78 15 51
Equipe Perception et Cognition Musicales    http://www.ircam.fr/  
IRCAM   1 place Igor Stravinsky             75004         Paris
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list