areColors: Check whether elements of a vector are valid colors

Description Usage Arguments Value Author(s) Examples

View source: R/areColors.R

Description

This function by Josh O'Brien checks whether elements of a vector are valid colors. It has been copied from a Stack Exchange answer (see http://stackoverflow.com/questions/13289009/check-if-character-string-is-a-valid-color-representation).

Usage

1

Arguments

x

The vector.

Value

A logical vector.

Author(s)

Josh O'Brien

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

Examples

1
areColors(c(NA, "black", "blackk", "1", "#00", "#000000"));

userfriendlyscience documentation built on May 2, 2019, 1:09 p.m.