nDotArgs: Determine Number of Arguments to Function

Description Usage Arguments Value See Also Examples

Description

count the number of ... arguments passed.

Usage

1

Arguments

...

... arguments or real arguments in the call to the function whcih calls ttnDotArgs.

Value

the number of ... arguments in the call to the function which calls nDotArgs.

See Also

nargs.

Examples

1
2
3
4
myfun <- function(..., a=4) nDotArgs(...)
myfun()                 ## returns 0 
myfun(1:3,"bear")       ## returns 2 
myfun(a=5, 1:3, "bear") ## returns 2 (excludes a)

splus2R documentation built on May 20, 2017, 1:56 a.m.

Search within the splus2R package
Search all R packages, documentation and source code