Vectorise addition whilst removing NA

后端 未结 0 500
暖寄归人
暖寄归人 2020-12-03 09:33

I am trying to add a scalar to a vector. However, when my scalar is NA, I want it to be ignored, similar to the na.rm = TRUE argument used in sum.<

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