Learn R Programming

tinter (version 0.1.0)

vld_color: Validate Color String

Description

Validates whether x is a string (non-missing character vector of length 1) that specifies a color.

Usage

vld_color(x)

vld_colour(x)

Arguments

x

The object to check.

Value

A flag indicating whether the object was validated.

Functions

  • vld_color: Validate Color String

  • vld_colour: Validate Colour String

See Also

chk_color()

Examples

Run this code
# NOT RUN {
# vld_color
vld_color("blue")
vld_color("glue")

# vld_color
vld_colour("blue")
vld_colour("glue")
# }

Run the code above in your browser using DataLab