Rev 2016 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{nargs}\title{The Number of Arguments to a Function}\usage{nargs()}\alias{nargs}\description{When used inside a function body, \code{nargs} returns the number ofarguments supplied to that function.}\seealso{\code{\link{args}}, \code{\link{formals}} and \code{\link{sys.call}}.}\examples{tst <- function(a, b=3, ...) {nargs()}tst() # 0tst(clicketyclack) # 1 (even non existing)tst(c1,a2,rr3) # 3nargs()# not really meaningful}\keyword{programming}