R/RToDelta.R

Defines functions RToDelta

Documented in RToDelta

#' Convert isotope ratio of sample to a delta value
#'
#' @param R Isotope ratio of sample
#' @param Rst Isotope ratio of standard
#'
#' @return delta value (permil)
#' @export
#'
#' @examples
#' RToDelta(0.11, 0.003678)
RToDelta <- function(R, Rst){
  (R/Rst-1)*1000
}
elizabethjmohr/isoToolsR documentation built on Dec. 20, 2021, 4:19 a.m.