Learn R Programming

⚠️There's a newer version (0.4.1) of this package.Take me there.

ir (version 0.2.1)

Functions to Handle and Preprocess Infrared Spectra

Description

Functions to import and handle infrared spectra (import from '.csv' and Thermo Galactic's '.spc', baseline correction, binning, clipping, interpolating, smoothing, averaging, adding, subtracting, dividing, multiplying, plotting).

Copy Link

Version

Install

install.packages('ir')

Monthly Downloads

217

Version

0.2.1

License

GPL-3

Maintainer

Henning Teickner

Last Published

May 2nd, 2022

Functions in ir (0.2.1)

extract.ir

Extract a character column in an ir object into multiple columns using regular expression groups
arrange.ir

Arrange rows in ir objects by column values
distinct.ir

Subset distinct/unique rows in ir objects
filter.ir

Subset rows in ir objects using column values
Ops.ir

Arithmetic operations for ir objects
group_by

Group rows in ir objects by one or more variables
filter-joins

Filtering joins for an ir object
bind

Bind rows of ir objects
ir-package

ir: Functions to Handle and Preprocess Infrared Spectra
ir_add

Add infrared spectra
ir_divide

Divide infrared spectra or divide infrared spectra by a numeric value
ir_as_ir

Generic to convert objects to class ir
ir_average

Averages infrared spectra within groups
ir_bc_polynomial

Performs baseline correction on infrared spectra using a polynomial
ir_flatten

Converts objects of class ir to objects of class ir_flat
ir_bc

Performs baseline correction on infrared spectra
ir_flat_clean

Cleans objects of class ir_flat
ir_new_ir

Creates an object of class ir
ir_new_ir_flat

Creates an object of class ir_flat
ir_sample_data

Sample object of class ir
ir_multiply

Multiply infrared spectra or multiply infrared spectra with a numeric value
ir_drop_spectra

Drops the column spectra from an object is of class ir
ir_interpolate_region

Interpolates selected regions in infrared spectra in an ir object
ir_smooth

Smooths infrared spectra in an ir object
ir_clip

Clips infrared spectra to new wavenumber ranges
ir_get_wavenumberindex

Gets the index of a defined wavenumber value for a spectrum
ir_bin

Bins infrared spectra
rep.ir

Replicate ir objects
rename

Rename columns in ir objects
ir_import_csv

Imports infrared spectra from various files
range

Get the minima/maxima/range/median of x axis values or intensity values of infrared spectra
plot.ir

Plots an object of class ir
slice

Subset rows in ir objects using their positions
ir_to_transmittance

Converts absorbance spectra to transmittance spectra or vice versa
nest

Nest and un-nest an ir object
ir_variance_region

Computes the variance of a spectrum in an ir object in a given region
subsetting

Subsetting ir objects
%>%

Pipe operator
pivot_wider.ir

Pivot an ir object from wide to long
pivot_longer.ir

Pivot an ir object from wide to long
summarize

Summarize each group in a ir object to fewer rows
unite.ir

Unite multiple columns in an ir object into one by pasting strings together
rowwise.ir

Group input ir objects by rows
ir_bc_rubberband

Performs baseline correction on infrared spectra using a rubberband algorithm
ir_bc_sg

Performs baseline correction on infrared spectra using a Savitzky-Golay baseline
ir_get_intensity

Extracts intensities from spectra in an ir object for specific spectral channels
ir_interpolate

Interpolates intensity values of infrared spectra in an ir object for new wavenumber values
ir_import_spc

Imports infrared spectra from Thermo Galactic's files
ir_normalize

Normalizes infrared spectra in an ir object
select.ir

Subset columns in ir objects using column names and types
mutate-joins

Mutating joins for an ir object
ir_remove_missing

Removes empty data values in an object of class ir
mutate

Mutate an ir object by adding new or replacing existing columns
ir_stack

Stacks a matrix or data frame with spectra into a list column
separate.ir

Separate a character column in an ir object into multiple columns with a regular expression or numeric locations
ir_get_spectrum

Extracts selected spectra from an object of class ir
separate_rows.ir

Separate a collapsed column in an ir object into multiple rows
ir_subtract

Subtract infrared spectra