Re: [R] help with distance matrix

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Fri 29 Sep 2006 - 23:46:58 GMT

Try:

as.dist(mymatrix)

On 9/29/06, Deming Mi <deming.mi@vanderbilt.edu> wrote:
> Dear R users,
> I have computed a diagonal distance matrix and it's in a matrix format (I
> did not use the dist() function). However hclust() does not take my
> distance matrix as correct input object. It seems that hclust() only accept
> the distance matrix from dist() as input object. Does anybody know how to
> make my distance matrix work with hclust()? Thank you!
>
> Deming Mi
>
> ______________________________________________
> 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.
>



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 Sat Sep 30 09:54: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 Sat 30 Sep 2006 - 00:30:07 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.