is_color: Check whether a character string is a valid color...

View source: R/is_color.R

is_colorR Documentation

Check whether a character string is a valid color specification.

Description

Check whether a character string is a valid color specification.

Usage

is_color(x, null_ok = FALSE)

Arguments

x

'character' vector. color specification

null_ok

'logical' flag. If set to TRUE, x may also be NULL.

Value

A 'logical' vector of the same length as argument x.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

Examples

is_color(c("red", "zzz", "#FFFFFF", "#7FAF1B111"))

inlcolor documentation built on May 29, 2024, 1:41 a.m.