Skip to contents

Is it a CMYK quadruple?

Usage

is_cmyk_color(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for four comma-separated values in 0-1.

See also

Other color detectors: is_color_name(), is_hex_color(), is_hsl_color(), is_rgb_color()

Examples

is_cmyk_color(c("0.0,0.31,0.37,0.0", "1,1,1,1", "0,0,0", NA))
#> [1]  TRUE  TRUE FALSE    NA