Hi all, I'm trying to perform a hierarchical clustering on some dissimilarity data that I have but the data matrix I have already contains the dissimilarity values. These values are calculated using a separate program. The dissimilarity matrix in complete with no missing values but the hclust, and agnes routines require it in the form produced by daisy or dist. Is there any of converting my complete matrix to this format without changing the values?? Thanks Adam
Wrap the matrix in as.dist(). HTH, Andy> From: Adam Tee > > Hi all, > > I'm trying to perform a hierarchical clustering on some > dissimilarity data that I have but the data matrix I have already > contains the dissimilarity values. These values are calculated using > a separate program. The dissimilarity matrix in complete with no > missing values but the hclust, and agnes routines require it in the > form produced by daisy or dist. Is there any of converting > my complete matrix to this format without changing the values?? > > Thanks > > Adam------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments,...{{dropped}}
On 6 Feb 2004 at 12:01, Adam Tee wrote: ?as.dist Kjetil Halvorsen> Hi all, > > I'm trying to perform a hierarchical clustering on some > dissimilarity data that I have but the data matrix I have already > contains the dissimilarity values. These values are calculated using > a separate program. The dissimilarity matrix in complete with no > missing values but the hclust, and agnes routines require it in the > form produced by daisy or dist. Is there any of converting my > complete matrix to this format without changing the values?? > > > Thanks > > Adam > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html