R/pull_uniques.R

Defines functions pull_uniques

pull_uniques <- function(x) {
  if(is.factor(x)) {
    x <- levels(x)
  } else {
    x <- as.character(unique(x))
  }
  x[!is.na(x)]
}

Try the saros.base package in your browser

Any scripts or data that you put into this service are public.

saros.base documentation built on June 8, 2025, 10:03 a.m.