Learn R Programming

sdam (version 1.1.4)

cs: Change case in a text

Description

A function to change letters to uppercase and lowercase in a given text.

Usage

cs(xz, level = 1, case = 1, flgdf = FALSE, na.rm = FALSE)

Value

Input text with defined case.

Arguments

xz

input text

level

optional clean level, either 0 for no-clean, default 1 to most strict 9 (see cln)

case

change case: 1 first letter uppercase and rest lowercase, 2 all letters lowercase, 3 all letters uppercase

flgdf

is xz a data frame?

na.rm

remove entries with NA data? (optional and logical)

Author

Antonio Rivero Ostoic

Details

This is a convenient function to change letters to uppercase and lowercase in a text for argument 'case' in function cln, and it inherits values from this function for 'level', 'flgdf', and 'na.rm'.

See Also

cln

Examples

Run this code
cs("Caesar?*+", level=2, case=3)

Run the code above in your browser using DataLab