cs {sdam}R Documentation

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)

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)

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'.

Value

Input text with defined case.

Author(s)

Antonio Rivero Ostoic

See Also

cln

Examples

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

[Package sdam version 1.1.4 Index]