Skip to contents

strs_casefold is used to perform case folding on each element of a character vector. This function is particularly useful for case-insensitive string matching and is similar to Python's str.casefold() method.

Usage

strs_casefold(string)

Arguments

string

A character vector where each element is a string to be case-folded.

Value

A character vector of the same length as string, where each element has been case-folded.

Examples

strs_casefold("HELLO World")
#> [1] "hello world"
strs_casefold("Äpfel")
#> [1] "äpfel"