Say I write the following function
f = function(x, y, ...){
plot(x, ...)
lines(y, col='red', ...)
}
This throws an error when I call f
with the argument col=
. I know how to find what arguments are passed with ...
, but I would like to remove col
from them if it is there, so the following works. How can I do that ?