isColorName.Colors: Checks if a color name is known or not

Description Usage Arguments Value Author(s) See Also Examples

Description

Checks if a color name is known or not.

Usage

1

Arguments

name

A vector a color names as character strings.

...

Not used.

Value

Returns a boolean vector of length length(name) specifying for each color name if it is a known name or not.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*getColorNames(). colors. For more information see Colors.

Examples

1
2
  Colors$isColorName("red")              # TRUE
  Colors$isColorName(c("blue", "gren"))  # c(TRUE, FALSE)

HenrikBengtsson/R.graphics documentation built on May 6, 2019, 11:53 p.m.