dist function suggestion
Friedrich Leisch
Friedrich.Leisch@ci.tuwien.ac.at
Wed, 20 Jan 1999 12:53:48 +0100 (CET)
>>>>> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._