areColors

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).

Keywords
utilities
Usage
areColors(x)
Arguments
x
The vector.
Value

A logical vector.

Aliases
  • areColors
Examples
areColors(c(NA, "black", "blackk", "1", "#00", "#000000"));
Documentation reproduced from package userfriendlyscience, version 0.6-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.