Row-binds several LUTs (as read by read_lut() or built with
lut_add()) into one, aligning columns (a type column present in only
some tables is filled with NA) and warning on duplicate label indices.
Arguments
- ...
LUT data.frames, each passing
is_lut().NULLinputs are dropped.
Examples
a <- data.frame(idx = 0L, label = "Unknown", R = 0L, G = 0L, B = 0L, A = 0L)
b <- data.frame(idx = 1L, label = "Region1", R = 5L, G = 5L, B = 5L, A = 0L)
lut_combine(a, b)
#> idx label R G B A
#> 1 0 Unknown 0 0 0 0
#> 2 1 Region1 5 5 5 0