Skip to contents

Check if an argument is a hexadecimal string

Usage

is_hex(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid non-empty hexadecimal string, FALSE otherwise.

Examples

is_hex("deadbeef")
#> [1] TRUE