简体   繁体   English

as.character(NA)的R值

[英]R value of as.character(NA)

Does anybody know the internal value of as.character(NA)? 有人知道as.character(NA)的内部值吗? How would somebody represent an NA string on the interpreter level? 有人将如何在解释程序级别上表示NA字符串? In other words, how would someone who would like to implement an R VM do that? 换句话说,想要实现R VM的人该怎么做?

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. 我查看了R的源代码,但找不到一个不解的NA_STRING定义,它似乎是NA字符串值的基础表示形式。

Thank in advance for all sugestions 预先感谢您的所有建议

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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