[R] help with distance matrix

Gabor Grothendieck ggrothendieck at gmail.com
Sat Sep 30 01:46:58 CEST 2006


Try:

as.dist(mymatrix)

On 9/29/06, Deming Mi <deming.mi at 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 at 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.
>



More information about the R-help mailing list