This function is used to generate choices for labelling purposes. It takes in a data frame of values and outputs a list of choices with corresponding labels.
Examples
df <- data.frame(var1 = c('A', 'B', 'C'), var2 = c(1L, 2L, 3L))
choices <- getChoices(df, 'var1', 'var2', overall = 'Overall')
#> Error in getChoices(df, "var1", "var2", overall = "Overall"): could not find function "getChoices"
print(choices)
#> Error in eval(expr, envir, enclos): object 'choices' not found
