Learn R Programming

ds4psy (version 0.7.0)

cclass: cclass provides character classes (as a named vector).

Description

cclass provides different character classes (as a named character vector).

Usage

cclass

Arguments

Format

An object of class character of length 6.

Details

cclass allows illustrating matching character classes via regular expressions.

See ?base::regex for details on regular expressions and ?"'" for a list of character constants/quotes in R.

See Also

metachar for a vector of metacharacters.

Other text objects and functions: Umlaut, capitalize(), caseflip(), count_chars_words(), count_chars(), count_words(), l33t_rul35, map_text_chars(), map_text_coord(), map_text_regex(), metachar, read_ascii(), text_to_chars(), text_to_sentences(), text_to_words(), transl33t()

Examples

Run this code
# NOT RUN {
cclass["hex"]  # select by name
writeLines(cclass["pun"])
grep("[[:alpha:]]", cclass, value = TRUE)

# }

Run the code above in your browser using DataLab