If I write a simple r function
foofunction<-function(x,y)
{
...
}
and call it like so with a "silly_option" argument that does not exist in the function definition:
foofunction(x=5,y=10,silly_option=6)
Then I get an error, as expected:
unused argument (silly_option = 6)
On the other hand, why doesn't this call return a similar error?
mean(c(1,2,3),silly_option=6)
Is mean() silently ignoring it or doing something with it?