R/ewing_snapshot.R

Defines functions ewing_snapshot

Documented in ewing_snapshot

#' Title
#'
#' @param object 
#' @param step 
#' @param ... 
#'
#' @return object of class ewing_snapshot
#' @export
ewing_snapshot <- function(object, step = 0, ...)
{
  out <- list(step = step,
              ageclass = ewing_ageclass(object, ...))

  species <- get.species(object)
  subs <- list()
  for(j in species) {
    subs[[j]] <- ewing_substrate(object, j, step = step, ...)
  }
  out$substrate <- subs
  
  class(out) <- c("ewing_snapshot", "ewing", "list")
  out
}
byandell/ewing documentation built on June 11, 2025, 4:53 a.m.