Re: [R] passing subsets of '...' to several other functions

2007-10-23 Thread Gavin Simpson
On Tue, 2007-10-23 at 12:15 +0100, Prof Brian Ripley wrote: > Take a look at several of the graphics functions, e.g. plot.default(), for > a good way to do this via local functions. Dear Prof. Ripley Thank you for your solution - this works well for my real problem. This is such a simple solutio

Re: [R] passing subsets of '...' to several other functions

2007-10-23 Thread Prof Brian Ripley
Take a look at several of the graphics functions, e.g. plot.default(), for a good way to do this via local functions. On Tue, 23 Oct 2007, Gavin Simpson wrote: > Dear List, > > Say I have a function foo() that accepts a varying number of arguments. > This function does some plotting so I want '.

[R] passing subsets of '...' to several other functions

2007-10-23 Thread Gavin Simpson
Dear List, Say I have a function foo() that accepts a varying number of arguments. This function does some plotting so I want '...' to be able to accept graphics parameters to be passed to plot() or points() say, but '...' should also accept optional arguments for function bar(), called from withi