Learn R Programming

crestr (version 1.2.1)

isColourStr: Test if R can interpret a string as a colour

Description

Test if R can interpret a string as a colour

Usage

isColourStr(col)

Value

A boolean value, TRUE if col is a valid colour, FALSE otherwise

Arguments

col

The string to be tested.

Examples

Run this code
isColourStr('black')
isColourStr('blakc')

Run the code above in your browser using DataLab