[R] error: unused arguments

Jim Lemon jim at bitwrit.com.au
Fri Oct 19 12:12:11 CEST 2007


Aydemir, Zava (FID) wrote:
> Hi
>  
> what does this mean when i get above error? When I call function foo(),
> specifying parameters a and b as below
>  
> a<-5
> b<-6
>  
> 
>>y <- foo(a,b)
>>Error in foo(a, b) : unused argument(s) (6)
> 
Hi Zava,
As the other Jim noted, it looks like foo() is declared with only one 
argument. Perhaps Ben Bolker's clean.args() function in the plotrix 
package would help.

Jim



More information about the R-help mailing list