R/cl_locales.R

Defines functions removena cl_locales

cl_locales <- function(codelist) {
  if (utils::hasName(codelist, "locale")) {
    codelist$locale |> unique() |> removena()
  } else NA_character_
}


removena <- function(x) {
  x[!is.na(x)]
}

Try the codelist package in your browser

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

codelist documentation built on April 12, 2025, 2:25 a.m.