Skip to contents

Functions for Chemometric Processing and Sample Selection of Spectroscopic Data

Last update: 2026-05-18

Version: 0.2.9 – proxy

In science, one man’s noise is another man’s signal

About

prospectr provides tools for signal processing and chemometrics, with a focus on pre-processing and sample selection of spectral data. It is increasingly used in spectroscopic applications, as reflected by the growing number of scientific publications citing the package.

Although similar functions are available in other packages such as signal, many functions in prospectr are designed to work consistently with data.frame, matrix, and vector inputs. Several functions are optimised for speed and rely on C++ code through the Rcpp and RcppArmadillo packages.

Documentation

The package includes three vignettes covering all major functionality:

  1. An introduction to the prospectr package: Overview, installation, and how to cite the package.
  2. Signal processing: Pre-processing methods including smoothing, derivatives, scatter corrections, baseline removal, centering, scaling, resampling, and continuum removal.
  3. Selecting representative calibration samples: Algorithms for selecting representative calibration and validation subsets from spectral data.

Core functionality

Signal processing:

Calibration sampling:

Other utilities:

Installation

Install from CRAN:

install.packages("prospectr")

Or install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("l-ramirez-lopez/prospectr")

The package requires a C++ compiler. On Windows, install Rtools. On macOS, you may need to install gfortran and clang from CRAN tools.

Citing the package

citation(package = "prospectr")

Bug reports

Report issues at GitHub or contact the maintainer ().

  • resemble: Memory-based learning and local modelling for spectral chemometrics.