The following units can be converted into each other: nm, \(cm^{-1}\), eV, THz and Raman shift.

wl_convert_units(x, from, to, ref_wl = NULL)

Arguments

x

data for conversion

from

source unit

to

destination unit

ref_wl

laser wavelength (required for work with Raman shift)

Author

R. Kiselev

Examples

wl_convert_units(3200, "Raman shift", "nm", ref_wl = 785.04)
#> [1] 1048.415
wl_convert_units(785, "nm", "invcm")
#> [1] 12738.85