简体   繁体   中英

R value of as.character(NA)

Does anybody know the internal value of as.character(NA)? How would somebody represent an NA string on the interpreter level? In other words, how would someone who would like to implement an R VM do that?

I looked in the sourcecode of R but I could not find an self-explaining definition of NA_STRING, which seems to be the underlying representation of string value of NA.

Thank in advance for all sugestions

根据Rinternals.hNA_STRINGCHARSXP ,它是“标量字符串类型(仅内部)”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM