[R] dissimilarity matrices

Kris Lockyear noviodunum at hotmail.com
Thu Nov 9 18:50:22 CET 2006


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)
mydists<-dist(mydata2)

Many thanks for your help.

Best wishes, Kris Lockyear.



More information about the R-help mailing list