[R] r-help, how can i use my own distance matrix without usin g dist()

Liaw, Andy andy_liaw at merck.com
Wed Jan 18 22:58:03 CET 2006

Use something like hclust(as.dist(mydist), ...) ought to work.


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of ucecgxu at ucl.ac.uk
Sent: Wednesday, January 18, 2006 4:47 PM
To: r-help at stat.math.ethz.ch
Subject: [R] r-help, how can i use my own distance matrix without using

Dear R-helpers,

i am a beginner of R and i am using cluster package to do hierarchical

i am wondering if i can use my own distance matrix to do the hierarchical
clustering without using dist() function.

if i have my own distance matrix, how can i ask hclust() function to
it( as the output of dist() function).

thank you very much and i looking forward to hearing from you.


R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide!

More information about the R-help mailing list