Skip to contents

[Deprecated]

is_ctab() was renamed to is_lut() for consistency with read_lut(), write_lut(), get_lut(), lut_add(), and lut_combine().

Usage

is_lut(x)

is_ctab(x)

Arguments

x

Object to check.

Value

TRUE if x is a data.frame with the required LUT columns.

Examples

ct <- data.frame(
  idx = 0L, label = "Unknown",
  R = 0L, G = 0L, B = 0L, A = 0L
)
is_lut(ct)
#> [1] TRUE
is_lut(data.frame(x = 1))
#> [1] FALSE