case

0th

Percentile

Convert case of a string.

Convert case of a string.

Usage
str_to_upper(string, locale = "en")

str_to_lower(string, locale = "en")

str_to_title(string, locale = "en")

Arguments
string

String to modify

locale

Locale to use for translations. Defaults to "en" (English) to ensure consistent default ordering across platforms.

Aliases
  • case
  • str_to_upper
  • str_to_lower
  • str_to_title
Examples
# NOT RUN {
dog <- "The quick brown dog"
str_to_upper(dog)
str_to_lower(dog)
str_to_title(dog)

# Locale matters!
str_to_upper("i") # English
str_to_upper("i", "tr") # Turkish
# }
Documentation reproduced from package stringr, version 1.3.1, License: GPL-2 | file LICENSE

Community examples

Looks like there are no examples yet.