[R] [interfacing C][dist]

From: Guillaume Allain <guillaume.allain_at_cbconseil.com>
Date: Mon 20 Jun 2005 - 19:28:25 EST

Hi,

Is it possible to access to the C source code of the "dist" function? I mean when u do read the dist code, it points almost directly to a C function :

d <- .C("R_distance", x = as.double(x), nr = N, nc = ncol(x),

         d = double(N * (N - 1)/2), diag = as.integer(FALSE),
         method = as.integer(method), p = as.double(p), DUP = FALSE,
         NAOK = TRUE, PACKAGE = "stats")$d

I would like to access to the R_distance.c in order to add a home made distance for classification distance.

Thanks for your help, Guillaume



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jun 20 19:34:04 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:53 EST