R/get_categories.R

Defines functions get_categories

#' List unique values of categorical data
#'
#' This function is for internal use only. It extracts and sorts levels of factors, and unique values of characters.
#'
#' @noRd

get_categories <- function(x) {
  sort(unique(as.character(x)))
}
reconhub/linelist documentation built on Jan. 1, 2023, 9:39 p.m.