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)
}
SongyanYu/dycdtools documentation built on Oct. 12, 2024, 4:41 a.m.