areColors | R Documentation |
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 https://stackoverflow.com/questions/13289009/check-if-character-string-is-a-valid-color-representation).
areColors(x)
x |
The vector. |
A logical vector.
Josh O'Brien
Maintainer: Gjalt-Jorn Peters gjalt-jorn@userfriendlyscience.com
ufs::areColors(c(NA, "black", "blackk", "1", "#00", "#000000"));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.