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
[EMAIL PROTECTED], www.homepages.ucl.ac.uk/~ucakche

______________________________________________
[email protected] 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.

Reply via email to