Learn R Programming

charcuterie (version 0.0.4)

is_letter: Is a Character a Letter?

Description

Compares against the values of letters (the English alphabet), ignoring case.

Usage

is_letter(x)

Value

A boolean vector indicating whether each element of x is a letter (appears in letters ignoring case).

Arguments

x

A vector of characters.

Examples

Run this code
is_letter(chars("Lee7c0deR"))

Filter(is_letter, chars("w00t"))

Run the code above in your browser using DataLab