cl_locale {codelist}R 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.


[Package codelist version 0.1.0 Index]