powered by
R
Test if R can interpret a string as a colour
isColourStr(col)
A boolean value, TRUE if col is a valid colour, FALSE otherwise
TRUE
FALSE
The string to be tested.
isColourStr('black') isColourStr('blakc')
Run the code above in your browser using DataLab