View source: R/getNonDefaultArguments.R
getNonDefaultArguments | R Documentation |
Given a function and an argument list, identify which arguments are different from their default.
getNonDefaultArguments(call, args = NULL)
call |
A function name as a string or symbol. Passing a vector of functions is possible, but is only intended for corresponding read/correct/convert functions. If multiple functions in a vector define arguments with the same name but different default values only the default defined in the first function is considered. |
args |
A list of named arguments used to call the given function(s). If duplicates of arguments exists the first occurrence of the argument will be used. |
A subset of args that is used by the function/s and is different from default values.
Jan Philipp Dietrich
cacheArgumentsHash
, toolstartmessage
madrat:::getNonDefaultArguments("madrat:::readTau", args = list(subtype = "historical"))
madrat:::getNonDefaultArguments("madrat:::readTau", args = list(subtype = "paper"))
calls <- c(madrat:::readTau, madrat:::convertTau)
madrat:::getNonDefaultArguments(calls, args = list(subtype = "historical"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.