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 qgraph package in your browser

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

qgraph documentation built on Nov. 3, 2023, 5:07 p.m.