> 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 ______________________________________________ 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.