View source: R/Data_handling.R
choose_avail | R Documentation |
Available variable names are checked against the full set of expected variables and missing cases are reported.
choose_avail(names, all_names, show_ignored = FALSE, warn = TRUE)
names |
A character vector with available names. |
all_names |
A character vector with all expected variable names. |
show_ignored |
A logical value. Should ignored names be shown? |
warn |
A logical value. Should you be warned if |
A character vector with subset of expected variable names.
# all available names to choose from
all_names <- c("TA", "TS", "VPD", "LE", "H", "NEE")
# names to choose if present in all_names
# - "PM10" wanted but not available - thus reported as not available
# - c("TA", "TS", "VPD", "NEE") available but not wanted, thus ignored
names <- c("H", "LE", "PM10")
choose_avail(names, all_names)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.