check.args_ {ASRgenomics} | R Documentation |
Check string arguments
Description
Check string arguments
Usage
check.args_(
data_ = NULL,
mandatory_ = FALSE,
arg_ = NULL,
class_ = NULL,
class.action_ = NULL,
mutate_ = NULL,
message_ = message
)
Arguments
data_ |
Data to be checked. |
mandatory_ |
If the argument is mandatory for the analysis. |
arg_ |
The string with the name of the function argument (e.g., |
class_ |
The expected class of the variable in data. |
class.action_ |
The action to be taken if the variable has the wrong class
(e.g., |
mutate_ |
If the argument should be mutated into the desired class. |
message_ |
If |
Details
This functions uses the get
and assign
which are need access to objects that
are one environment up on the hierarchy. The envir
is set to parent.frame
. If the function is looking
for something two or more environments up, the arguments of parent.frame
have to be changed.
[Package ASRgenomics version 1.1.4 Index]