Re: [R] sub-function default arguments

2007-07-12 Thread Duncan Murdoch
On 12/07/2007 7:23 PM, Talbot Katz wrote: > Hi. > > I have defined a function, f1, that calls another function, f2. Inside f1 > an intermediate variable called nm1 is created; it is a matrix. f2 takes a > matrix argument, and I defined f2 (schematically) as follows: > > f2<-function(nmArg1=nm

[R] sub-function default arguments

2007-07-12 Thread Talbot Katz
Hi. I have defined a function, f1, that calls another function, f2. Inside f1 an intermediate variable called nm1 is created; it is a matrix. f2 takes a matrix argument, and I defined f2 (schematically) as follows: f2<-function(nmArg1=nm1,...){nC<-ncol(nmArg1); ... } so that it expects nm1 a