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

View source: R/GetColors.R

IsColorR Documentation

Check whether a character string is a valid color specification.

Description

Check whether a character string is a valid color specification.

Usage

IsColor(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

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


USGS-R/inlmisc documentation built on Sept. 17, 2022, 2:38 a.m.