Thanks for the suggestion Christian. I'm trying to avoid expanding the dist
object to a matrix, since i'm usually working with microarray data which
produces a distance matrix of size 5000 x 5000.

If i can keep it in its condensed form i think it will speed things up.

Is my thinking correct?


On 3/12/07, Christian Hennig <chrish@stats.ucl.ac.uk> wrote:
>
> On Mon, 12 Mar 2007, Sender wrote:
>
> > Hello:
> >
> > Does anyone know if there exists a package that handles methods for [
> for
> > dist objects?
> >
> > I would like to access a dist object using matrix notation
> >
> > e.g.
> >
> > dMat = dist(x)
> > dMat[i,j]
>
> Try
> dMat <- as.matrix(dist(x))
>
> Christian
>
>
>
> *** --- ***
> Christian Hennig
> University College London, Department of Statistical Science
> Gower St., London WC1E 6BT, phone +44 207 679 1698
> chrish@stats.ucl.ac.uk, www.homepages.ucl.ac.uk/~ucakche
>

	[[alternative HTML version deleted]]

