strs_upper: Convert string to uppercase

View source: R/upper.R

strs_upperR Documentation

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")

Arguments

string

A character vector to be converted to uppercase.

locale

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

Value

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

See Also

Python str.upper() documentation

Examples

strs_upper("hello world")
strs_upper("Àpfel", locale = "de")

strs documentation built on Sept. 11, 2024, 6:44 p.m.