Re: [R] how to manipulate ... in the argument list

2016-05-12 Thread Witold E Wolski
Duncan suggested to use the argument explicitly and combine it with the missing function which is for this problem also my preferred solution: image.2 <- function(x, col , breaks, ...){ # function is manipulating colors (adding a few) # since it changes colors it needs to update breaks if def

Re: [R] how to manipulate ... in the argument list

2016-05-11 Thread Vito M. R. Muggeo
Hi Witold, use do.call() list.args<-list(...) #modify 'list.args' (add/delete/modify) do.call(image, list.args) best, vito Il 11/05/2016 10.45, Witold E Wolski ha scritto: Hi, I am looking for a documentation describing how to manipulate the "..." . Searching R-intro.html gives to many not

Re: [R] how to manipulate ... in the argument list

2016-05-11 Thread Duncan Murdoch
On 11/05/2016 4:45 AM, Witold E Wolski wrote: Hi, I am looking for a documentation describing how to manipulate the "..." . Searching R-intro.html gives to many not relevant hits for "..." What I want to do is something like this : image.2 <- function(x, col , ...){ # function is manipulati

Re: [R] how to manipulate ... in the argument list

2016-05-11 Thread Jim Lemon
Hi Witold, You could try Ben Bolker's "clean.args" function in the plotrix package. Jim On Wed, May 11, 2016 at 6:45 PM, Witold E Wolski wrote: > Hi, > > I am looking for a documentation describing how to manipulate the > "..." . Searching R-intro.html gives to many not relevant hits for > "...

[R] how to manipulate ... in the argument list

2016-05-11 Thread Witold E Wolski
Hi, I am looking for a documentation describing how to manipulate the "..." . Searching R-intro.html gives to many not relevant hits for "..." What I want to do is something like this : image.2 <- function(x, col , ...){ # function is manipulating colors (adding a few) # since it changes colo