is_mac: Check if an argument is a MAC address string

View source: R/string.R

is_macR Documentation

Check if an argument is a MAC address string

Description

Check if an argument is a MAC address string

Usage

is_mac(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid MAC address string, FALSE otherwise.

Examples

is_mac("00:1B:44:11:3A:B7")

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