How to Apply the Sys.getlocale & Sys.setlocale Functions in R (2 Examples)

In this tutorial you’ll learn how to apply the Sys.getlocale and Sys.setlocale functions in the R programming language.

Example 1: Specifying Aspects of the Locale Using Sys.getlocale() Function

Sys.setlocale()                     # Using Sys.setlocale command
# [1] ""

Example 2: Returing Aspects of the Locale Using Sys.getlocale() Function

Sys.getlocale()                     # Using Sys.getlocale command
# [1] "LC_CTYPE=de_DE.UTF-8;LC_NUMERIC=C;LC_TIME=de_DE.UTF-8;LC_COLLATE=de_DE.UTF-8;LC_MONETARY=de_DE.UTF-8;LC_MESSAGES=de_DE.UTF-8;LC_PAPER=de_DE.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=de_DE.UTF-8;LC_IDENTIFICATION=C"

Leave a Reply

Your email address will not be published. Required fields are marked *

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