R/helper.R

Defines functions select_choices

select_choices <- function(.data) {
  # name choices with: "name (type)"
  var_types <- vapply(.data, tibble::type_sum, character(1))
  x <- c(CONST_NONE, names(var_types))
  names(x) <- c("none", sprintf("%s (%s)", names(var_types), var_types))
  x
}
wcmbishop/gogoplot documentation built on May 29, 2019, 10:39 a.m.