Re: [R] Optional variables in function?

2006-07-03 Thread Joerg van den Hoff
jim holtman wrote: ?missing On 7/2/06, Jonathan Greenberg [EMAIL PROTECTED] wrote: I'm a bit new to writing R functions and I was wondering what the best practice for having optional variables in a function is, and how to test for optional and non-optional variables? e.g. if I have the

Re: [R] Optional variables in function?

2006-07-02 Thread jim holtman
?missing On 7/2/06, Jonathan Greenberg [EMAIL PROTECTED] wrote: I'm a bit new to writing R functions and I was wondering what the best practice for having optional variables in a function is, and how to test for optional and non-optional variables? e.g. if I have the following function:

[R] Optional variables in function?

2006-07-01 Thread Jonathan Greenberg
I'm a bit new to writing R functions and I was wondering what the best practice for having optional variables in a function is, and how to test for optional and non-optional variables? e.g. if I have the following function: helpme - function(a,b,c) { } In this example, I want c to be an