[R] How to avoid test for NAs in foreign function call

Knut M. Wittkowski kmw at mail.rockefeller.edu
Thu Dec 14 00:04:31 CET 2006


We have packed logical vectors into integers, 32 flags at a time and 
then want to AND or OR these vectors of "integers" using other C functions.

The problem: occasionally, the packed sequence of 32 logical values 
resembles NA, causing the error message:

Error in bitAND(packed1, packed2, lenx) :
         NAs in foreign function call (arg 1)

How does one instruct R to avoid checking for NAs?

Knut M. Wittkowski, PhD,DSc
------------------------------------------
The Rockefeller University,
Center for Clinical and Translational Science
Research Design and Biostatistics,
1230 York Ave #121B, Box 322, NY,NY 10021
+1(212)327-7175, +1(212)327-8450 (Fax), kmw at rockefeller.edu
http://www.rockefeller.edu/ccts/rdbs.php



More information about the R-help mailing list