[R] Inconsistency of 1^NA=1 vs. 1.1^NA=NA
Da Zheng
zhengda1936 at gmail.com
Thu Nov 17 20:19:09 CET 2016
Hello,
I just realized that 1^NA outputs 1 while 1.1^NA outputs NA in R v3.3.1 and
R v3.2.3.
I tried other values such as 0^NA and 2^NA, and they all output NA.
I don't understand this inconsistency here. Shouldn't 1^NA output NA as
well? Why does R handle it differently? Or is this a bug in these
particular versions of R?
Thanks,
Da
[[alternative HTML version deleted]]
More information about the R-help
mailing list