Re: [R] Passing additional arguments through '...'

2009-07-17 Thread Charles C. Berry
On Fri, 17 Jul 2009, escher2079 wrote: Fair enough. I'm not going to post all the code because it's distracting, but the following example function is demonstrative of the problem: exfun<-function(...){ print(x) } I'm aware that leaving making the only inputs additional arguments is bad form,

Re: [R] Passing additional arguments through '...'

2009-07-17 Thread escher2079
Fair enough. I'm not going to post all the code because it's distracting, but the following example function is demonstrative of the problem: exfun<-function(...){ print(x) } I'm aware that leaving making the only inputs additional arguments is bad form, but this is merely an example. So here i

Re: [R] Passing additional arguments through '...'

2009-07-17 Thread Charles C. Berry
On Fri, 17 Jul 2009, escher2079 wrote: Thanks for your suggestions, they were quite helpful. I've just about solved the problem, but now I just need to know where the additional arguments passed through '...' are stored (in order to make my own matching scheme I need to be able to change the va

Re: [R] Passing additional arguments through '...'

2009-07-17 Thread escher2079
Thanks for your suggestions, they were quite helpful. I've just about solved the problem, but now I just need to know where the additional arguments passed through '...' are stored (in order to make my own matching scheme I need to be able to change the value of those to the correct values upon en

Re: [R] Passing additional arguments through '...'

2009-07-17 Thread escher2079
Thanks everyone for your suggestions, they've been very helpful. I think I've just about solved my problem, but not quite yet. As suggested, I've used sys.call and match.call. Here is what I have so far: fun.tester <- function(abc,def,ghi,jkl,...){ mf <- match.call(expand.dots = FALSE) sc <- sy

Re: [R] Passing additional arguments through '...'

2009-07-15 Thread Charles C. Berry
On Wed, 15 Jul 2009, escher2079 wrote: Hi, I know this is a simple question, but I've been having problems passing additional arguments through '...'. It is not matching the arguments correctly if the permanent argument of the function begins with the same letter as the additional argument. Th

Re: [R] Passing additional arguments through '...'

2009-07-15 Thread Bert Gunter
: r-help@r-project.org Subject: [R] Passing additional arguments through '...' Hi, I know this is a simple question, but I've been having problems passing additional arguments through '...'. It is not matching the arguments correctly if the permanent argument of the function b

[R] Passing additional arguments through '...'

2009-07-15 Thread escher2079
Hi, I know this is a simple question, but I've been having problems passing additional arguments through '...'. It is not matching the arguments correctly if the permanent argument of the function begins with the same letter as the additional argument. The following example will help show what I