How to Apply the Sys.localeconv() Function in R (Example Code)

In this R tutorial you’ll learn how to find details about the numerical and monetary representations in the current locale using the Sys.localeconv function.

Example: Numerical & Monetary Representations in Current Locale

Sys.localeconv()                     # Using the Sys.localeconv() function in R
#     decimal_point     thousands_sep          grouping   int_curr_symbol 
#               "."                ""                ""            "EUR " 
#   currency_symbol mon_decimal_point mon_thousands_sep      mon_grouping 
#               "€"               ","               "."        "�03�03" 
#     positive_sign     negative_sign   int_frac_digits       frac_digits 
#                ""               "-"               "2"               "2" 
#     p_cs_precedes    p_sep_by_space     n_cs_precedes    n_sep_by_space 
#               "0"               "1"               "0"               "1" 
#       p_sign_posn       n_sign_posn 
#               "1"               "1"

Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top