[R] How to globally enable warning messages or stop the program if NA is encountered?

Peng Yu pengyu.ut at gmail.com
Mon Feb 1 05:13:19 CET 2010


By default, my R functions run silently if NA is encountered? I would
like them to give me some message when NA is encountered by default.

Note that I could check each intermediate variable by something like
is.na(). But this is not manageable for big programs, so I'd like a
way to check NA globally.



More information about the R-help mailing list