R/min_time.R

Defines functions min_time.sac min_time.adm min_time

Documented in min_time

min_time = function(x){
  #' @export
  #' 
  #' @title first time tie point
  #' 
  #' @param x age-depth model (adm) or sediment accumulation curve (sac)
  #' 
  #' @returns number, timing of first tie point of the age-depth model/sediment accumulation curve
  #' 
  #' @seealso [max_time()], [get_total_duration()]
  #' 
  UseMethod("min_time")
}

min_time.adm = function(x){
  #' @export
  #' 
  t = get_T_tp.adm(x)
  return(min(t))
}

min_time.sac = function(x){
  #' @export
  #' 
  t = get_T_tp.sac(x)
  return(min(t))
}

Try the admtools package in your browser

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

admtools documentation built on Oct. 4, 2024, 1:09 a.m.