Skip to contents

Check if a string vector is in hexadecimal color format

Usage

is.hexcolor(x)

Arguments

x

A string vectors

Examples


x <- c("#f0f0f0", "#FFf", "#99990000", "#00FFFFFF")

is.hexcolor(x)
#> [1] TRUE TRUE TRUE TRUE