[R] Passing Inf from R to C using .C("myLibC"...

Ardia David david.ardia at unifr.ch
Thu Apr 24 15:01:57 CEST 2008

Dear all,
How can I pass '-Inf' and 'Inf' values from R to C code using the 
function '.C(...)'. When running my code, I get an error since C does 
not recognize -Inf and Inf values. Of course, I could use instead a very 
low (or high) number, but I was wondering whether a more elegant 
solution exists. Thanks for your help.
David Ardia
H-building, room 11-26
Econometric Institute
Erasmus University
PO Box 1738
NL 3000 DR Rotterdam
The Netherlands
Phone: +31 (0)10 408 2269

More information about the R-help mailing list