From Friedrich.Leisch@ci.tuwien.ac.at  Wed Jan 20 11:53:48 1999
From: Friedrich.Leisch@ci.tuwien.ac.at (Friedrich Leisch)
Date: Wed, 20 Jan 1999 12:53:48 +0100 (CET)
Subject: dist function suggestion
In-Reply-To: <Pine.GSO.3.96.990120113952.29339H-101000@laplace>
References: <Pine.GSO.3.96.990120113952.29339H-101000@laplace>
Message-ID: <13989.50124.504879.10553@galadriel.ci.tuwien.ac.at>

>>>>> On Wed, 20 Jan 1999 11:50:47 +0000 (GMT),
>>>>> Jonathan Rougier (JR) wrote:

JR> On my R installation (0.62.4) there is no dist() function, so I attach one
JR> possibility.  It provides Euclidean distances only, but it does compute
JR> dist(X, Y) as a matrix, as well as dist(X) as a vector of lower-triangular
JR> values; naturally dist(X, X) gives the full distance matrix of X.

dist is contained in the mva package which comes with (base) R. it
provides `"euclidian"', `"maximum"', `"manhattan"', `"canberra"' and
`"binary"' distances both in matrix and triangular form.

I couldn't open the tar file you attached, so I couldn't check your
version.

Best,
Fritz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


dist function suggestion
Friedrich Leisch