powered by
Checks whether a string is a valid colour representation.
is_colour(x)
a boolean
a string
if (FALSE) { is_colour("red") is_colour("#12345") }
Run the code above in your browser using DataLab