Displaying 1 result from an estimated 1 matches for "nmarg1".
Did you mean:
narg1
2007 Jul 12
1
sub-function default arguments
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 as the default value of its argument. f1 is defined
(schematically) as:
f1<-function(...){result1<-f2(); ... }
When I ran f1 I got the following error message:
Error in ncol(nmArg1) : object "nm1" not found.
If I rede...