R/any_recols.R

Defines functions any_recols

Documented in any_recols

#' Determines if the island contains any recolonisations that survived to the
#' present
#'
#' @inheritParams default_params_doc
#' @return Boolean
#' @export
any_recols <- function(sim) {
  testit::assert(is.list(sim))
  sim <- sim[-1]
  stacs <- unlist(lapply(sim, "[[", "stac"))
  any_recols <- any(stacs == 3)
  return(any_recols)
}
Neves-P/DAISIErobustness documentation built on May 22, 2024, 4:26 p.m.