Fix str_to_upper’s default locale (#937)

From https://stringr.tidyverse.org/reference/case.html:

> locale: Locale to use for translations. Defaults to "en" (English) to ensure consistent default ordering across platforms.
This commit is contained in:
Jakob Krigovsky 2021-04-14 17:03:48 +02:00 committed by GitHub
parent 27db40ad65
commit 20b925c1ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ str_to_upper(c("i", "ı"), locale = "tr")
The locale is specified as a ISO 639 language code, which is a two or three letter abbreviation.
If you don't already know the code for your language, [Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) has a good list.
If you leave the locale blank, it will use the current locale, as provided by your operating system.
If you leave the locale blank, it will use English.
Another important operation that's affected by the locale is sorting.
The base R `order()` and `sort()` functions sort strings using the current locale.