Skip to contents

ir 0.4.1

ir 0.4.0

Bug fixes

New functions

Improvements

  • ir_correct_atmosphere() has a new parameter return_contribution which allows to return the contribution of ref to each spectrum in x.
  • ir_normalize() has three new methods to normalize spectra:
    1. With method = "area_absolute", all intensity values will be divided by the sum of the absolute intensity values at all wavenumber values of the spectrum.
    2. With method = "vector", all intensity values will be divided by the norm of the intensity vector (vector normalization).
    3. With method = "snv“, a Standard Normal Variate correction will be performed.
  • ir_bc_rubberband() has an additional parameter to allow imputation of the first and last value in a spectra to avoid artifacts which may happen during baseline correction with the rubberband algorithm.
  • All functions now fully support empty spectra.
  • Several dependencies in Imports have been moved to Suggests.
  • Efficiency of several functions has been improved.

ir 0.3.0

Bug fixes

  • In ir_import_spc(), the returned ir object was not a tbl_df, but a data frame. This is now corrected.
  • In unnest.ir(), the ir class was not restored and therefore the result was always unclassed.
  • In ir_average(), the returned ir object was still a grouped_df. This is now corrected (by adding the .groups argument for dplyr::summarize() which is internally used by ir_average()).

New functions

  • ir_export_prepare() to support exporting ir objects to csv.
  • ir_correct_atmosphere() enables correcting for atmospheric artifacts (e.g. H2_2O and CO2_2 peaks) following Perez-Guaita et al. (2013) (DOI: 10.1366/13-07159).

Improvements

ir 0.2.1

CRAN release: 2022-05-02

ir 0.2.0

CRAN release: 2022-04-25

  • First CRAN release (#1).
  • Added a NEWS.md file to track changes to the package.
  • Added tidyverse methods for ir objects.
  • ir objects no longer require columns measurement_id and sample_id, but only the column spectra.
  • Added subsetting and binding methods for ir objects.
  • Added arithmetic operators for ir objects.