Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nDotArgs

Determine Number of Arguments to Function


Description

count the number of ... arguments passed.

Usage

nDotArgs(...)

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

Examples

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

Supplemental S-PLUS Functionality in R

v1.3-3
GPL-2
Authors
William Constantine [aut], Tim Hesterberg [aut], Knut Wittkowski [ctb], Tingting Song [ctb], Bill Dunlap [ctb], Stephen Kaluzny [ctb, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.