[R] distance metrics
David Meyer
david.meyer at wu-wien.ac.at
Tue Mar 13 19:10:20 CET 2007
> 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 for distance matrices currently in
package cba, which allows subsetting "dist" objects. (Note that this
will move to the new "proxy" package on proximity measures very soon).
David
More information about the R-help
mailing list