R/Rshift_to_lambda.R

Defines functions Rshift_to_lambda

Documented in Rshift_to_lambda

#' Raman Shift -> Wavelength
#'
#' @param w Raman Shift in cm-1
#' @param laser laser wavelength in nm
#'
#' @return Returns the Raman Shift as a wavelength in nm
#' @export
#'
#' @examples
#' Rshift_to_lambda(w = 4401)
Rshift_to_lambda <- function(w, laser = 532) {
    1e+07 / (1e+07 / laser - w)
}
colinbousige/tutor documentation built on Jan. 29, 2023, 7:35 p.m.