[R] error: unused arguments
jim holtman
jholtman at gmail.com
Fri Oct 19 00:14:48 CEST 2007
What is 'foo'? It appears that foo does not take 2 arguments:
> foo <- function(x) x
> foo(1,2)
Error in foo(1, 2) : unused argument(s) (2)
>
On 10/18/07, Aydemir, Zava (FID) <Zava.Aydemir at morganstanley.com> 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)
>
>
> Thanks
>
> Zava
> --------------------------------------------------------
>
> This is not an offer (or solicitation of an offer) to bu...{{dropped:24}}
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help
mailing list