[R] distance metrics

2007-03-13 Thread David Meyer
> 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] You can use the [[ operator defined f

[R] distance metrics

2007-03-13 Thread Jari Oksanen
On Tue Mar 13 00:21:22 CET 2007 Gavin Simpson wrote: > On Mon, 2007-03-12 at 16:02 -0700, Sender wrote: > 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

Re: [R] distance metrics

2007-03-12 Thread Gavin Simpson
On Mon, 2007-03-12 at 16:02 -0700, Sender wrote: > 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 t

Re: [R] distance metrics

2007-03-12 Thread Sender
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

Re: [R] distance metrics

2007-03-12 Thread Christian Hennig
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 *** --- ***

[R] distance metrics

2007-03-12 Thread Sender
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] Thanks in advance to anyone who can point me in the right direction. [[alternative HTML version delet