Learn R Programming

eq5dsuite (version 1.0.1)

eqvs_drop: eqvs_drop

Description

Drop user-defined EQ-5D value set to reverse crosswalk options.

Usage

eqvs_drop(country = NULL, version = "5L", saveOption = 1, savePath = NULL)

Value

True/False, indicating success or error.

Arguments

country

Optional string. If NULL, a list of current user-defined value sets will be provided for selection. If set, and matching an existing user-defined value set, a prompt will be given as to whether the value set should be deleted.

version

Version of the EQ-5D instrument. Can take values 5L (default) or 3L.

saveOption

Integer indicating how the cache data should be saved. 1: Do not save (default), 2: Save in package folder, 3: Save in another path.

savePath

A path where the cache data should be saved when `saveOption` is 3. Please use `eqvs_load` to load it in your next session.

Examples

Run this code
# \donttest{
  # make nonsense value set
  new_df <- data.frame(state = make_all_EQ_indexes(), TEST = runif(3125))
  # Add as value set for Fantasia
  eqvs_add(
   new_df,
   version = "5L",
   country = 'Fantasia',
   countryCode = "MyCountry",
   VSCode = "FAN",
   saveOption = 1
  )
  # Test the new value set
  eq5d5l(55555,country = "FAN")
  # Drop value set for Fantasia
  eqvs_drop(country = 'FAN', saveOption = 1)
# }

Run the code above in your browser using DataLab