R/show.R

#' @aliases show,TransitionLayer-method
#' @aliases show,TransitionStack-method
#' @author Jacob van Etten
#' @exportMethod show
setMethod("show" , "TransitionLayer",
           function(object) {
             callNextMethod(object)
             cat("values      :", matrixValues(object), "\n")
             cat("matrix class:", class(transitionMatrix(object)), "\n")
           }
           )


#' @exportMethod show
setMethod("show" , "TransitionStack",
           function(object) {
             callNextMethod(object)
             cat("nlayers      :", nlayers(object), "\n")
             #show something about the layers if layers <=5
             #cat("values      :", matrixValues(x), "\n")
             #cat("matrix class:", class(transitionMatrix(x)), "\n")
           }
           )

Try the gdistance package in your browser

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

gdistance documentation built on July 9, 2023, 5:51 p.m.