[R] alas, no vecnorm

Faheem Mitha faheem at email.unc.edu
Thu May 4 06:14:25 CEST 2000


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list