check.args_ | R Documentation |
Check string arguments
check.args_(
data_ = NULL,
mandatory_ = FALSE,
arg_ = NULL,
class_ = NULL,
class.action_ = NULL,
mutate_ = NULL,
message_ = message
)
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.