Learn R Programming

voluModel (version 0.2.3)

areColors: Are Colors

Description

Checks to see if a given vector can be interpreted by R as a color or colors

Usage

areColors(col)

Value

A logical vector stating whether inputs can be interpreted as colors.

Arguments

col

A vector of anything to be interpreted by rgb as a color.

Examples

Run this code

areColors(col = c("red", "prairie_chicken", 2))

Run the code above in your browser using DataLab