gen_varmod | R Documentation |
Generating a daily variable list file from variables names
gen_varmod(
workspace,
var,
append = FALSE,
file_name = "var.mod",
stics_version = "latest",
force = FALSE,
var_names = lifecycle::deprecated(),
version = lifecycle::deprecated()
)
workspace |
Path of the directory containing the STICS var.mod file to modify |
var |
vector of variables names (see details) |
append |
if TRUE, |
file_name |
file name to generate (without path, default value: "var.mod") |
stics_version |
Name of the STICS version (used to check variable names) |
force |
Force variables writing even if they are not a STICS variable (default: FALSE). |
var_names |
|
version |
Variable names can be found using get_var_info()
. They are
checked before writing. If any variable name does not exist,
it will not be written by default, but the function will still write
the variables that exist. force= TRUE
may however be used to write
variables that do not exist.
None
gen_varmod(tempdir(), c("lai(n)", "hauteur"))
# Add a variable to the others:
gen_varmod(tempdir(), "masec(n)", append = TRUE)
# NB: var.mod will have "lai(n)","hauteur" and "masec(n)"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.