R/is_rsm.R

Defines functions is.rsm

Documented in is.rsm

#' Check whether an object is of the `rsm` class
#'
#' Checks object to see if it is an `rsm` object. An `rsm` object is a list with elements `cellIDs`, `cellsToUse`, `mesh`, `dates`, and `stage`
#'
#' @param x object to check
#' @export
#' @return logical
#' @examples
#' is.rsm(month.abb) # FALSE
#' 
#' @export



is.rsm <- function(x) {
  
  return(any(class(x) %in% 'rsm'))
}
troyhill/RSM documentation built on Aug. 23, 2022, 2:40 p.m.