nargin {matlab2r} | R Documentation |
Number of function input arguments
Description
Returns the number of arguments passed to the parent function
Usage
nargin()
Value
An integer indicating how many input arguments a function received.
Note
This function only makes sense inside another function
Author(s)
Waldir Leoncio
References
https://stackoverflow.com/q/64422780/1169233
Examples
f <- function(x, y, z) return(nargin())
f(pi)
f(y = 6, z = 5)
f(letters)
f(letters, LETTERS, pi)
[Package matlab2r version 1.5.0 Index]