is_alphanumeric: Checks alphanumeric format of a string

Description Usage Arguments Value Note Examples

Description

These functions wrap a simple regular expression for checking if a vector is alpha-numeric characters only.

Usage

1
2
3
4
5

Arguments

x

Character vector

Value

Logical vector (same length as x)

Note

The functions all_alphanumeric simply wraps is_alphanumeric within all, and check_alphanumeric simply wraps all_alphanumeric within stop.

Examples

1
2
x = c("hey", "1hey", "hey1", "$hey", "-o", "/", " hey")
is_alphanumeric(x)

muschellij2/bids documentation built on May 17, 2019, 7:46 a.m.