Skip to content
Prev 30377 / 398513 Next

How to count the number of parameters in a function

I have the following function:
Myfunc <- function(var1,var2,.....,varN)
{ .....
}
In the above function I have a variable number of parameters (N>2). How can
I count how many parameters have been entered?

Any help appreciated

Thanks

Arno