Re: [R] Fortran?

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 14 Oct 2005 - 17:34:43 EST

"Sam R. Smith" <samrobertsmith@yahoo.com> writes:

> In a package, i type a function name and got the following message:
> ...
> tmp <- .Fortran("master", x = as.double(x), y = as.double(y),
> sort = as.logical(sort), rw = as.double(rw), npd = as.integer(npd),
> ntot = as.integer(ntot), nadj = integer(tadj), madj = as.integer(madj),
> ind = integer(npd), tx = double(npd), ty = double(npd),
> ilist = integer(npd), eps = as.double(eps), delsgs = double(tdel),
> ndel = as.integer(ndel), delsum = double(ntdel),
> dirsgs = double(tdir), ndir = as.integer(ndir), dirsum = double(ntdir),
> nerror = integer(1))
> ...
> does it mean this function is using something from FORTRAN?

Well, it's using a binary object that was compiled from FORTRAN code.

The sources for the package will contain the actual human-readable code. For more details (likely more than you can handle at this point...), look in the Writing R Extensions manual.

> Thanks a lot!

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
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 Fri Oct 14 17:41:29 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:52:06 EST