is_hex: Check if an argument is a hexadecimal string

View source: R/string.R

is_hexR Documentation

Check if an argument is a hexadecimal string

Description

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")

checkstring documentation built on Sept. 28, 2026, 5:07 p.m.