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

Description Usage Arguments Value Author(s) Examples

View source: R/GetColors.R

Description

Check whether a character string is a valid color specification.

Usage

1
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

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

inlmisc documentation built on Jan. 25, 2022, 1:14 a.m.