is_color {inlcolor} | R 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 |
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"))
[Package inlcolor version 1.0.6 Index]