View source: R/update_value_sets.R
| update_value_sets | R Documentation |
Connects to the eq5dsuite value sets repository and checks whether new value sets are available for any of the three EQ-5D instruments. Optionally drop or rename existing value sets before checking for updates.
update_value_sets(
versions = c("3L", "5L", "Y3L"),
ask = TRUE,
drop = NULL,
rename = NULL
)
versions |
Character vector. Which instruments to check. Defaults to c("3L", "5L", "Y3L"). |
ask |
Logical. Whether to ask for confirmation before installing, dropping, or renaming. Defaults to TRUE. |
drop |
Character vector of VS_codes to remove, in the format "VS_code:version" e.g. c("NL:3L", "US:5L"). Defaults to NULL (no removals). |
rename |
Named character vector of renames in the format c("old_VS_code:version" = "new_VS_code") e.g. c("NL:3L" = "NL_2006"). Defaults to NULL (no renames). |
This function requires an internet connection for checking and installing new value sets. Drop and rename operations work offline.
Invisibly returns a list with elements
checked, new, installed,
dropped, and renamed.
## Not run:
# Check for new value sets interactively
update_value_sets()
# Check specific instrument only
update_value_sets(versions = "5L")
# Drop a value set
update_value_sets(drop = "NL:3L")
# Rename a value set
update_value_sets(rename = c("NL:3L" = "NL_2006"))
# Drop and rename in one call
update_value_sets(
drop = "DE:3L",
rename = c("NL:3L" = "NL_2006", "SI:3L" = "SI_TTO")
)
# Non-interactive update
update_value_sets(ask = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.