R/class-CategoryLabel.R

#' Virtual class CategoryLabel
#'
#' A virtual S4 class to represent information about categorical Raster* objects.
#'
#' @slot categories numeric vector of land use categories 
#' @slot labels character vector corresponding to \code{categories}
#'
#' @export
#' @exportClass CategoryLabel
#' @rdname CategoryLabel-class

setClass("CategoryLabel",
         contains = c("VIRTUAL"),
         slots = c(categories = "numeric",
                   labels = "character"),
         validity = function(object) {
             ## TODO
             return(TRUE)
         }
)

Try the lulcc package in your browser

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

lulcc documentation built on May 1, 2019, 7:05 p.m.