is.color | R Documentation |
Given a character vector, this function will check whether each element in the vector is a valid color descriptor, such as "black", "chartreuse2", or "#ff0000"
is.color(str)
str |
a character vector |
a logical vector of the same length indicating which elements are valid colors
is.color(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.