[R] dist(x,y)

ryszard.czerminski@pharma.novartis.com ryszard.czerminski at pharma.novartis.com
Tue Jan 6 19:07:41 CET 2004


Hi Erin,

CLARIFICATION: I am looking for function which can calculate distances 
between
rows in two different matrices (not in the same matrix as dist).
Of course I can get the desired result by using rbind() and fiddling with 
indices of the result, which I already did,
but I wonder if there is a function (or some variant of dist), which does 
it directly ?

Ryszard





Erin Hodgess <hodgess at gator.uhd.edu>
Sent by: r-help-bounces at stat.math.ethz.ch
01/06/2004 12:41 PM

 
        To:     r-help at stat.math.ethz.ch
        cc: 
        Subject:        [R] dist(x,y)


Hi Ryszard!

There is a dist function in R.
It's in the mva package.
You can set the kind of distance that you want.

Thanks,
Erin
mailto:hodgess at gator.uhd.edu

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list