{"id":32209705,"url":"https://github.com/l-ramirez-lopez/prospectr","last_synced_at":"2025-10-22T06:14:35.745Z","repository":{"id":42482891,"uuid":"248019820","full_name":"l-ramirez-lopez/prospectr","owner":"l-ramirez-lopez","description":"R package: Misc. Functions for Processing and Sample Selection of Spectroscopic Data","archived":false,"fork":false,"pushed_at":"2025-10-17T20:24:06.000Z","size":18268,"stargazers_count":44,"open_issues_count":9,"forks_count":21,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-10-18T21:43:01.710Z","etag":null,"topics":["chemometrics","derivatives","infrared","near-infrared","nir","pedometrics","preprocessing","r","r-package","resample","sampling","signal","soil-spectroscopy","spectroscopy"],"latest_commit_sha":null,"homepage":"https://CRAN.R-project.org/package=prospectr","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/l-ramirez-lopez.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-03-17T16:31:34.000Z","updated_at":"2025-10-17T20:24:11.000Z","dependencies_parsed_at":"2025-08-19T19:26:40.542Z","dependency_job_id":null,"html_url":"https://github.com/l-ramirez-lopez/prospectr","commit_stats":{"total_commits":583,"total_committers":10,"mean_commits":58.3,"dds":"0.13722126929674094","last_synced_commit":"017a868a66bc8eea2759404cfedc87e10bfc6cf9"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/l-ramirez-lopez/prospectr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-ramirez-lopez%2Fprospectr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-ramirez-lopez%2Fprospectr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-ramirez-lopez%2Fprospectr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-ramirez-lopez%2Fprospectr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l-ramirez-lopez","download_url":"https://codeload.github.com/l-ramirez-lopez/prospectr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l-ramirez-lopez%2Fprospectr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280390595,"owners_count":26322755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chemometrics","derivatives","infrared","near-infrared","nir","pedometrics","preprocessing","r","r-package","resample","sampling","signal","soil-spectroscopy","spectroscopy"],"created_at":"2025-10-22T06:14:33.103Z","updated_at":"2025-10-22T06:14:35.738Z","avatar_url":"https://github.com/l-ramirez-lopez.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: \"README\"\noutput: md_document\ndate: \"2022-09-18\"\n---\n\n# prospectr\n\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/prospectr)](https://CRAN.R-project.org/package=prospectr)\n[![Downloads](https://cranlogs.r-pkg.org/badges/prospectr)](https://cranlogs.r-pkg.org/badges/prospectr)\n\n\u003cimg align=\"right\" src=\"./man/figures/logo.png\" width=\"15%\"\u003e\n\n\u003c!-- badges: end --\u003e\n\n\u003cem\u003e\u003cp align=\"left\"\u003e Misc. Functions for Processing and Sample Selection of Spectroscopic Data \u003c/p\u003e\u003c/em\u003e\n_Antoine Stevens \u0026 Leo Ramirez-Lopez_\n\n_Last update: `r Sys.Date()`_\n\n\nVersion: `r paste(prospectr:::pkg_info()[1:2], collapse =  \" \\U002D\\U002D \")`\n\n`prospectr` is becoming more and more used in spectroscopic applications, which \nis evidenced by the number of scientific publications citing the package. \nThis package is very useful for signal processing and chemometrics in general as \nit provides various utilities for pre--processing and sample selection \nof spectral data. While similar functions are available in other packages, like \n[`signal`](https://CRAN.R-project.org/package=signal), the \nfunctions in this package work indifferently for `data.frame`, `matrix` and \n`vector` inputs. Besides, several functions are optimized for speed and use \nC++ code through the [`Rcpp`](https://CRAN.R-project.org/package=Rcpp) \nand [`RcppArmadillo`](https://CRAN.R-project.org/package=RcppArmadillo)\npackages.\n\n## Installing it from GitHub\n\nInstall this package from github by:\n\n```\nremotes::install_github(\"l-ramirez-lopez/prospectr\")\n```\nNOTE: in some MAC Os it is still recommended to install `gfortran` and `clang`\nfrom [here](https://cran.r-project.org/bin/macosx/tools/). Even for R \u003e= 4.0. \nFor more info, check this [issue](https://github.com/tidyverts/fable/issues/193).  \n\n\n## News\n\nCheck the NEWS document for new functionality and general changes in the package.\n\n\n## Vignette\n\nA vignette for `prospectr` explaining its core functionality is available at [https://CRAN.R-project.org/package=prospectr/vignettes/prospectr.html](https://CRAN.R-project.org/package=prospectr/vignettes/prospectr.html).\n\n\n## Core functionality\n\nA vignette gives an overview of the main functions of the package. Just\ntype `vignette(\"prospectr-intro\")` in the console to access it. Currently, the\nfollowing preprocessing functions are available:\n\n- `resample()`              : resample a signal to new coordinates by linear or spline interpolation\n\n- `resample2()`             : resample a signal to new coordinates using FWHM values\n\n- `movav()`                 : moving average\n\n- `standardNormalVariate()` : standard normal variate\n\n- `msc()`                   : multiplicative scatter correction\n\n- `detrend()`               : detrend normalization\n\n- `baseline()`              : baseline removal/correction\n\n- `blockScale()`            : block scaling\n\n- `blockNorm()`             : sum of squares block weighting\n\n- `binning()`               : average in column--wise subsets\n\n- `savitzkyGolay()`         : Savitzky-Golay filter (smoothing and derivatives)                      \n\n- `gapDer()`                : gap-segment derivative\n\n- `continuumRemoval()`      : continuum-removed absorbance or reflectance values\n\nThe selection of representative samples/observations for calibration of spectral\nmodels can be achieved with one of the following functions:\n\n- `naes()`      : k-means sampling\n\n- `kenStone()`  : CADEX (Kennard--Stone) algorithm\n\n- `duplex()`    : DUPLEX algorithm\n\n- `shenkWest()` : SELECT algorithm\n\n- `puchwein()`  : Puchwein sampling\n\n- `honigs()`    : Unique-sample selection by spectral subtraction\n\nOther useful functions are also available:\n\n\n- `read_nircal()`      : read binary files exported from BUCHI NIRCal software\n\n- `readASD()`          : read binary or text files from an ASD instrument (Indico Pro format)         \n\n- `spliceCorrection()` : correct spectra for steps at the splice of detectors in an ASD FieldSpec Pro\n\n- `cochranTest()`      : detects replicate outliers with the Cochran _C_ test\n\n## Citing the package\nAntoine Stevens and Leornardo Ramirez-Lopez (2025). An introduction to the prospectr package. R package\nVignette R package version 0.2.8.\nA BibTeX entry for LaTeX users is:\n\n```\n @Manual{stevens2022prospectr,\n    title = {An introduction to the prospectr package},\n    author = {Antoine Stevens and Leornardo Ramirez-Lopez},\n    publication = {R package Vignette},\n    year = {2025},\n    note = {R package version 0.2.8},\n  }\n```\n## Bug report and development version\n\nYou can send an email to the package maintainer (\u003cramirez.lopez.leo@gmail.com\u003e) \nor create an [issue](https://github.com/l-ramirez-lopez/prospectr/issues) on github.\nTo install the development version of `prospectr`, simply install [`devtools`](https://CRAN.R-project.org/package=devtools) from\nCRAN then run `install_github(\"l-ramirez-lopez/prospectr\")`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-ramirez-lopez%2Fprospectr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl-ramirez-lopez%2Fprospectr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl-ramirez-lopez%2Fprospectr/lists"}