50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

strs (version 0.1.0)

strs_upper: Convert string to uppercase

Description

strs_upper converts each element of a character vector to uppercase, based on the specified locale. It is similar to Python's str.upper() method.

Usage

strs_upper(string, locale = "en")

Value

A character vector of the same length as string, with each element converted to uppercase.

Arguments

string

A character vector to be converted to uppercase.

locale

A character string representing the locale to be used for the conversion.

See Also

Examples

Run this code
strs_upper("hello world")
strs_upper("äpfel", locale = "de")

Run the code above in your browser using DataLab