R/get_selectize_choices.R

Defines functions get_selectize_choices

Documented in get_selectize_choices

#' Get selectize choices
#' @param data tibble
#' @param x name of variable to pull (must be a column in data)
#' 
get_selectize_choices <- function(data, x) {
  
  data %>% 
    dplyr::pull({{x}}) %>% 
    unique() %>% 
    sort()
  
}
kristian-bak/betting documentation built on Oct. 24, 2022, 1:35 p.m.