R/min_height.R

Defines functions min_height.sac min_height.adm min_height

Documented in min_height

min_height = function(x){
  
  #' @export
  #' 
  #' @title get lowest stratigraphic tie point
  #' 
  #' @param x an age-depth model (adm) or sediment accumulation curve (sac)
  #' 
  #' @returns number, stratigraphic position of lowest tie point
  #' 
  #' @seealso [get_total_thickness()], [max_height()]
  #' 
  UseMethod("min_height")
  
}

min_height.adm = function(x){
  
  #' @export
  h = get_L_tp.adm(x)
  return(min(h))
}

min_height.sac = function(x){
  #' @export
  h = get_L_tp.sac(x)
  return(min(h))
}

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.