Message-ID: <Pine.LNX.4.21.0005040009280.950-100000@Chrestomanci.home.earth>
Date: 2000-05-04T04:14:25Z
From: Faheem Mitha
Subject: alas, no vecnorm
I wanted a function that would give the euclidean distance of a vector.
Then I was happy, because I found vecnorm listed on pg 55 of V&R (3rd
edn) which I had just bought today.
Then I was sad, because R did not have vecnorm.
Then I was happy again, because I bethought myself that I could copy the
function vecnorm from splus to my code.
Then I was sad again because R complained
> vecnorm(v)
Error in .Fortran("d2norm", as.integer(length(x)), as.double(x), value =
double(1)) :
C/Fortran function name not in load table
So, after this tempest of emotion, the question still remains: does R have
this function under another name, or was it simply overlooked?
Best regards, Faheem Mitha.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._