Skip to content
Prev 241411 / 398500 Next

How to set an argument such that a function treats it as missing?

Marius Hofert wrote:
Just leave out the line above, and you'll get both messages printed:

 > g()
[1] "g: missing x"
[1] "f: missing x"

Duncan Murdoch