R/generic_method.R

#' @include intensityClass.R
NULL
#' Accessor method for objects from Intensity Analysis
#' @param Interval the class
#' @param x the object
#' @param name the name of the object
#'
#' @keywords internal
#' @rdname acessor
#'
#'


setMethod("$",
  signature = "Interval",
  function(x, name) {
    if (name %in% slotNames(x)) {
      slot(x, name)
    }
  }
)


#' @rdname acessor
#'
#' @param Category the class
setMethod("$",
  signature = "Category",
  function(x, name) {
    if (name %in% slotNames(x)) {
      slot(x, name)
    }
  }
)


#' @rdname acessor
#'
#' @param Transition the class
setMethod("$",
  signature = "Transition",
  function(x, name) {
    if (name %in% slotNames(x)) {
      slot(x, name)
    }
  }
)

Try the OpenLand package in your browser

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

OpenLand documentation built on July 10, 2026, 9:06 a.m.