Tells if one or more variable names are valid STICS output variables.

is_stics_var(var, stics_version = "latest")

Arguments

var

A vector of variable names

stics_version

Name of the STICS version. Optional, can be used to search parameters information relative to a specific STICS version. By default the latest version returned by get_stics_versions_compat() is used.

Value

A boolean vector: TRUE if the variable exist, FALSE otherwise

See also

get_var_info() for interactive use.

Examples

is_stics_var(c("lai(n)", "masec(n)", "unknown"))
#> ! Variable `unknown` not found. Try `get_var_info()`.
#> [1]  TRUE  TRUE FALSE