[Rcpp-devel] CharacterVector::is_na

Tim Keitt tkeitt at utexas.edu
Tue Feb 10 22:50:31 CET 2015


library(Rcpp)
def = "bool is_na_character_vector(CharacterVector x) { return
CharacterVector::is_na(x); }"
f = cppFunction(def)
print(f(as.character(NA))) # FALSE

What am I missing?

THK

-- 
http://www.keittlab.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150210/e9d077e2/attachment.html>


More information about the Rcpp-devel mailing list