cl_locale: Get the locale to use with the codelist

View source: R/cl_locale.R

cl_localeR Documentation

Get the locale to use with the codelist

Description

Get the locale to use with the codelist

Usage

cl_locale(codelist, preferred = getOption("CLLOCALE", NA_character_))

Arguments

codelist

a codelist object or a data.frame that is a valid code list.

preferred

the preferred locale. If missing or not present in the code list, the first locale in the code list will be used.

Value

A character vector of length 1 with the locale. Can be NA when the codelist does not have locales.


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