Reduce function returns wrong logical output when using is.na inside the input function

后端 未结 0 530
无人共我
无人共我 2021-01-05 01:24

Compare the results of the following evaluations:

Reduce(function (x, y) is.na(x) | is.na(y), list(c(1, 2, NA), 1:3, 1:3))
## [1] FALSE FALSE FALSE

相关标签:
回答
  • 消灭零回复
提交回复
热议问题