R/discolor.R

'discolor' <- function(obj,nodata=NA) {
   if (!is.ursa(obj))
      return(invisible(obj))
  # if (!is.colortable(obj))
  #    return(invisible(obj))
   obj <- .extract(obj)
   ursa_colortable(obj) <- character()
   if (!is.na(nodata))
      ursa_nodata(obj) <- nodata
   invisible(obj)
}

Try the ursa package in your browser

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

ursa documentation built on Sept. 30, 2024, 9:35 a.m.