is_number {charcuterie} | R Documentation |
Compares against the values of 0:9
(as a number).
is_number(x)
x |
A vector of characters. |
A boolean vector indicating whether each element of x
is a
number (appears in 0:9
as a number)
is_number(chars("Lee7c0deR"))
Filter(is_number, chars("w00t"))