Learn R Programming

ds4psy (version 0.2.0)

caseflip: caseflip flips the case of characters in a string of text x.

Description

caseflip flips the case of characters in a string of text x.

Usage

caseflip(x)

Arguments

x

A string of text (required).

See Also

capitalize for converting the case of initial letters.

Other text functions: capitalize(), count_char(), l33t_rul35, read_ascii(), transl33t()

Examples

Run this code
# NOT RUN {
x <- c("Hello world!", "This is a 1st sentence.", "This is the 2nd sentence.", "The end.")
caseflip(x)
 
# }

Run the code above in your browser using DataLab