[R] dissimilarity matrices

From: Kris Lockyear <noviodunum_at_hotmail.com>
Date: Thu 09 Nov 2006 - 17:50:22 GMT

Dear All,

I have a dissimilarity matrix which I happily convert to a distance object by running:

X <- as.dist(Y)

and I can happily now run either hclust(X) or agnes(X).

So that the various bits of output are labelled correctly I would dearly like to be able to give names to the columns and rows of X, as would happen if I ran:

mydata<-read.table("clipboard",header=T) mydata2<-t(mydata)

Many thanks for your help.

Best wishes, Kris Lockyear.

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 and provide commented, minimal, self-contained, reproducible code. Received on Fri Nov 10 05:08:06 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 10 Nov 2006 - 15:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.