Skip to contents

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

Usage

is_letter(x)

Arguments

x

A vector of characters.

Value

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

Examples

is_letter(chars("Lee7c0deR"))
#>     L     e     e     7     c     0     d     e     R 
#>  TRUE  TRUE  TRUE FALSE  TRUE FALSE  TRUE  TRUE  TRUE 

Filter(is_letter, chars("w00t"))
#> [1] "wt"