powered by
Convert case of a string.
str_to_upper(string, locale = "en")str_to_lower(string, locale = "en")str_to_title(string, locale = "en")
str_to_lower(string, locale = "en")
str_to_title(string, locale = "en")
String to modify
Locale to use for translations. Defaults to "en" (English) to ensure consistent default ordering across platforms.
# 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 # }
Run the code above in your browser using DataLab