strs_swapcase: Swap uppercase and lowercase characters in a string

View source: R/swapcase.R

strs_swapcaseR Documentation

Swap uppercase and lowercase characters in a string

Description

strs_swapcase returns a copy of the string with uppercase characters convert to lowercase and visa-versa. It is similar to Python's str.swapcase().

Usage

strs_swapcase(string)

Arguments

string

A character vector where each element is a string.

Value

A character vector of the same length as string, with specified uppercase characters converted to lowercase and visa-versa.

See Also

Python str.swapcase() documentation

Examples

strs_swapcase("Hello World")

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