.get_names {eq5dsuite} | R Documentation |
Replace NULL names with default values
Description
This function takes in a list of parameters, which would be column names of the input data frame, and checks if they are null. Any nulls are replaced with default values, and the updated list of parameters is returned.
Usage
.get_names(df = NULL, ...)
Arguments
df |
a data frame; only used/supplied if levels_fu needs to be defined |
... |
a list of parameters consisting of any/all of 'names_eq5d', 'name_fu', 'levels_fu', 'eq5d_version', and 'name_vas'. |
Value
a list of parameters with null entries replaced with default values.
Examples
.get_names(names_eq5d = c("mo", "sc", "ua", "pd", "ad"))
.get_names(names_eq5d = NULL, eq5d_version = NULL, name_vas = NULL)
.get_names(df = example_data, name_fu = NULL, levels_fu = NULL)
[Package eq5dsuite version 1.0.0 Index]