Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Swap uppercase and lowercase characters in a string

Source:R/swapcase.R
strs_swapcase.Rd

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

Usage

strs_swapcase(string)

Arguments

string

A character vector where each element is a string.

Value

A character vector of the same length asstring, with specifieduppercase characters converted to lowercase and visa-versa.

See also

Python str.swapcase() documentation

Examples

strs_swapcase("Hello World")#> [1] "hELLO World"

[8]ページ先頭

©2009-2025 Movatter.jp