areColors: Check whether elements of a vector are valid colors

Description Usage Arguments Value Author(s) Examples

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"));

Matherion/userfriendlyscience documentation built on May 7, 2019, 3:41 p.m.