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 Nov. 2, 2021, 9:13 a.m.