R/convert_dbar.R

Defines functions convert_dbar

Documented in convert_dbar

#===============================================================================
#' @title convert_dbar
#'
#' @description convert values from dbar
#'
#' @author Jonathan Kennel \email{jkennel@uoguelph.ca}
#'
#' @param val value in dbar to convert
#' @param to_unit abbreviation for unit ('m', 'ft')
#'
#' @return data.table of results
#'
#' @export
#'
#===============================================================================
convert_dbar <- function(val, to_unit = 'm'){
  conv_unit(conv_unit(val, 'dbar', 'cmH2O'), 'cm', to_unit)
}
jkennel/rbr documentation built on Feb. 15, 2023, 1:37 a.m.