Skip to content
Prev 31284 / 398525 Next

sum(..., na.rm=TRUE) oddity

Duncan Murdoch wrote:
In parsing functions with an ellipsis in the argument list, R appears to 
consume unnamed arguments until it finds a recognized argument name or 
encounters an unresolvable data conflict. This is pretty reasonable 
behavior.
What seems to be happening here is that you have explicitly named the 
argument, then supplied an argument with an name that cannot be resolved. 
I think the "misspelled argument name" is irrelevant to your original 
question.

Jim