R/isColor.R

Defines functions isColor

isColor <- function(x) {
  sapply(x, function(X) {
    if (!is.logical(X)) tryCatch(is.matrix(col2rgb(X)), 
             error = function(e) FALSE) else FALSE
  })
}

Try the semPlot package in your browser

Any scripts or data that you put into this service are public.

semPlot documentation built on Aug. 10, 2022, 9:06 a.m.