R/Summary.R

setGeneric("summary")
setMethod(
  f = "summary",
  signature = c(object = ".UD"),
  definition = function(object) {
    return(list(Raster_proj = object@crs@projargs, Raster_ext = object@extent, Raster_max_val = maxValue(object), Raster_min_val = minValue(object)))
  }
)

setMethod("summary",
  signature = ".UDStack",
  definition = function(object) {
    lst <- lapply(split(object), summary)
    return(lst)
  }
)

Try the move package in your browser

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

move documentation built on July 9, 2023, 6:09 p.m.