strs_lower: Convert string to lowercase

View source: R/lower.R

strs_lowerR Documentation

Convert string to lowercase

Description

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

Usage

strs_lower(string, locale = "en")

Arguments

string

A character vector to be converted to lowercase.

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 lowercase.

See Also

Python str.lower() documentation

Examples

strs_lower("HELLO WORLD")
strs_lower("Äpfel", locale = "de")

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