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)
         }
)
simonmoulds/r_lulcc documentation built on May 11, 2020, 12:56 p.m.