Learn R Programming

daiR (version 1.0.0)

is_colour: Check that a string is a valid colour representation

Description

Checks whether a string is a valid colour representation.

Usage

is_colour(x)

Value

a boolean

Arguments

x

a string

Examples

Run this code
if (FALSE) {
is_colour("red")
is_colour("#12345")
}

Run the code above in your browser using DataLab