Learn R Programming

inlmisc (version 0.5.5)

IsColor: 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.

Examples

Run this code
# NOT RUN {
IsColor(c("red", "zzz", "#FFFFFF", "#7FAF1B111"))

# }

Run the code above in your browser using DataLab