library(prospectr)prospectr package2026-05-31
In science, one man’s noise is another man’s signal – (Ng, 1990)
prospectr provides a set of tools for signal processing and chemometrics, particularly for the 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. In addition, several functions are optimised for speed and rely on C++ code through the Rcpp and RcppArmadillo packages.
Several spectroscopic techniques such as Near-Infrared (NIR) spectroscopy are high-throughput, non-destructive, and low-cost sensing methods with applications in agricultural, medical, food, and environmental science. A number of R packages relevant to spectroscopists are already available for processing and analysis of spectroscopic data. Since the publication of the special volume on Spectroscopy and Chemometrics in R (Mullen and Stokkum, 2007), many spectroscopy-related R packages have been released. Several are listed in relevant CRAN Task Views, including:
In addition, Bryan Hanson maintains a curated list of free and open-source software (FOSS) for spectroscopic applications; see https://bryanhanson.github.io/FOSS4Spectroscopy/.
If you use prospectr in your work, please cite it. The recommended citation can be obtained in R with:
library(prospectr)citation(package = "prospectr")To cite package 'prospectr' in publications use:
Antoine Stevens and Leornardo Ramirez-Lopez (2026). An introduction
to the prospectr package. R package Vignette R package version 0.2.9.
A BibTeX entry for LaTeX users is
@Manual{,
title = {An introduction to the prospectr package},
author = {Antoine Stevens and Leornardo Ramirez-Lopez},
publication = {R package Vignette},
year = {2026},
note = {R package version 0.2.9},
}
The functionality of prospectr is documented in two additional vignettes: