Learn R Programming

charcuterie (version 0.0.4)

is_alnum: Is a Character a Letter OR a Number?

Description

A combination of is_letter() and is_number().

Usage

is_alnum(x)

Value

A boolean vector indicating whether each element of x is a letter or a number.

Arguments

x

A vector of characters.

Examples

Run this code
is_alnum(chars("Lee7c0deR 4 L1fe"))

Filter(is_alnum, chars("2 B or !2 B"))

Run the code above in your browser using DataLab