[R] adding a method to the dist function

Giampiero Salvi giampi at speech.kth.se
Mon May 3 11:50:38 CEST 2004


Hi all,
I'd like to add the Bhattacharyya method to the dist function.
What is the best way to do this? I'm using R 1.9.0 and I was looking
for the code that defines the already existing distances, but I didn't
manage. As far as I understand, dist is defined in mva that is part
of the stats package now, but where is the code?

Thank you very much,
Giampiero




More information about the R-help mailing list