R/Fun_Height2Depth.R

Defines functions hgt_to_dpt

Documented in hgt_to_dpt

#' convert from height to depth
#' @param height a vector of height profile
#'

hgt_to_dpt <- function(height){
  depth <- max(height) - height
  return(depth)
}

Try the dycdtools package in your browser

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

dycdtools documentation built on Nov. 22, 2022, 1:12 a.m.