areColors: Check whether elements of a vector are valid colors

View source: R/areColors.R

areColorsR Documentation

Check whether elements of a vector are valid colors

Description

This function by Josh O'Brien checks whether elements of a vector are valid colors. It has been copied from a Stack Exchange answer (see https://stackoverflow.com/questions/13289009/check-if-character-string-is-a-valid-color-representation).

Usage

areColors(x)

Arguments

x

The vector.

Value

A logical vector.

Author(s)

Josh O'Brien

Maintainer: Gjalt-Jorn Peters gjalt-jorn@userfriendlyscience.com

Examples


ufs::areColors(c(NA, "black", "blackk", "1", "#00", "#000000"));


ufs documentation built on May 29, 2024, 10:30 a.m.