Is it possible to set na.rm to TRUE globally?

前端 未结 4 1271
情歌与酒
情歌与酒 2020-12-05 13:56

For commands like max the option na.rm is set by default to FALSE. I understand why this is a good idea in general, but I\'d like to t

4条回答
  •  旧巷少年郎
    2020-12-05 14:51

    It is not possible to change na.rm to TRUE globally. (See Hong Ooi's comment under the question.)

    EDIT:

    Unfortunately, the answer you don't want is the only one that works generally. There's no global option for this like there is for na.action, which only affects modeling functions like lm, glm, etc (and even there, it isn't guaranteed to work in all cases). – Hong Ooi Jul 2 '13 at 6:23

提交回复
热议问题