R/arg.names.R

arg.names <-
function (x) 
{
    switch(mode(x), `function` = names(formals(x)), call = names(x)[-1], 
        character = {
            names(formals(x))
        }, stop("mode must be 'function', 'call', or 'character'"))
}

Try the EnvStats package in your browser

Any scripts or data that you put into this service are public.

EnvStats documentation built on Aug. 22, 2023, 5:09 p.m.