NMdataConf | R Documentation |
Configure default behavior across the functions in NMdata rather than typing the arguments in all function calls. Configure for your file organization, data set column names, and other NMdata behavior. Also, you can control what data class NMdata functions return (say data.tables or tibbles if you prefer one of those over data.frames).
NMdataConf(..., allow.unknown = FALSE)
... |
NMdata options to modify. These are named arguments, like for base::options. Normally, multiple arguments can be used. The exception is if reset=TRUE is used which means all options are restored to default values. If NULL is passed to an argument, the argument is reset to default. is See examples for how to use. |
allow.unknown |
Allow to store configuration of variables that are not pre-defined in NMdata. This should only be needed in cases where say another package wants to use the NMdata configuration system for variables unknown to NMdata. Parameters that can be controlled are:
|
Recommendation: Use this function transparently in the code and not in a configuration file hidden from other users.
If no arguments given, a list of active settings. If arguments given and no issues found, TRUE invisibly.
## get current defaults
NMdataConf()
## change a parameter
NMdataConf(check.time=FALSE)
## reset one parameter to default value
NMdataConf(modelname=NULL)
## reset all parameters to defaults
NMdataConf(reset=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.