getarg: getarg

View source: R/getarg.R

getargR Documentation

getarg

Description

A convenience function providing flexibility in specification of function arguments.

Usage

getarg(V)

Arguments

V

A variable list specified in any of the ways specified above.

Details

The function returns a character-vector of argument names for an input name that can have any of these forms: getarg(c(ATX, DPXC)), getarg(names(Data)), getarg(names(Data)[2:3]), getarg(nm[2:4]), getarg(ATX), getarg('ATX'), getarg(c('ATX', 'PSXC')), getarg(c(ATX)). If called with argument Data$ATX, returns c('Data', 'ATX'); for Data[ir, ATX], returns c('Data', 'ir', 'ATX'). These forms are used in some Ranadu functions, notably VSpec(), for more flexibility in the arguments that can be supplied.

Author(s)

William Cooper

Examples

getarg(c(RTH1, RTH2))


NCAR/Ranadu documentation built on Jan. 27, 2023, 1:09 a.m.