R/get_hiat_no.R

Defines functions get_hiat_no

Documented in get_hiat_no

get_hiat_no = function(x){
  
  #'
  #' @export
  #'
  #' @title get no. of hiatuses
  #' 
  #' @description
    #' Determines the number of hiatuses in an age-depth model
  #'
  #' @usage get_hiat_no(x)
  #'
  #' @param x an adm object
  #' 
  #' @returns An integer, no. of hiatuses in the age-depth model
  #' 
  #' @seealso 
    #' * [get_hiat_pos()] to determine stratigraphic positions of hiatuses
    #' * [get_hiat_list()] to determine position and timing of hiatuses
    #' * [get_hiat_duration()] to determine duration of hiatuses
  #'
  #' @examples
    #' my_adm = tp_to_adm(t = 1:4, h = c(1,2,2,3)) # one hiatus
    #' get_hiat_no(my_adm)
    #' 
  #'
  #'
  UseMethod("get_hiat_no")
}

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.