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

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Thu 19 Jan 2006 - 08:58:03 EST


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

Andy

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

Dear R-helpers,

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

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 recongnize
it( as the output of dist() function).

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

Marshall



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jan 19 09:05:02 2006

This archive was generated by hypermail 2.1.8 : Thu 19 Jan 2006 - 14:11:32 EST