View source: R/locale_management.R
stri_locale_info | R Documentation |
Provides some basic information on a given locale identifier.
stri_locale_info(locale = NULL)
locale |
|
With this function you may obtain some basic information on any provided locale identifier, even if it is unsupported by ICU or if you pass a malformed locale identifier (the one that is not, e.g., of the form Language_Country). See stringi-locale for discussion.
This function does not do anything really complicated. In many
cases it is similar to a call to
as.list(stri_split_fixed(locale, '_', 3L)[[1]])
,
with locale
case mapped.
It may be used, however, to get insight on how ICU understands a given
locale identifier.
Returns a list with the following named character strings:
Language
, Country
, Variant
, and
Name
, being their underscore separated combination.
Marek Gagolewski and other contributors
The official online manual of stringi at https://stringi.gagolewski.com/
Gagolewski M., stringi: Fast and portable character string processing in R, Journal of Statistical Software 103(2), 2022, 1-59, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v103.i02")}
Other locale_management:
about_locale
,
stri_locale_list()
,
stri_locale_set()
stri_locale_info('pl_PL')
stri_locale_info('Pl_pL') # the same result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.