Package: spectacles 0.5-5
spectacles: Storing, Manipulating and Analysis Spectroscopy and Associated Data
Stores and eases the manipulation of spectra and associated data, with dedicated classes for spatial and soil-related data.
Authors:
spectacles_0.5-5.tar.gz
spectacles_0.5-5.zip(r-4.7)spectacles_0.5-5.zip(r-4.6)spectacles_0.5-5.zip(r-4.5)
spectacles_0.5-5.tgz(r-4.6-any)spectacles_0.5-5.tgz(r-4.5-any)
spectacles_0.5-5.tar.gz(r-4.7-any)spectacles_0.5-5.tar.gz(r-4.6-any)
spectacles_0.5-5.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
spectacles/json (API)
NEWS
| # Install 'spectacles' in R: |
| install.packages('spectacles', repos = c('https://pierreroudier.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/pierreroudier/spectacles/issues
Last updated from:affba77759. Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | NOTE | 219 | ||
| source / vignettes | OK | 255 | ||
| linux-release-x86_64 | NOTE | 223 | ||
| macos-release-arm64 | NOTE | 153 | ||
| macos-oldrel-arm64 | NOTE | 156 | ||
| windows-devel | NOTE | 197 | ||
| windows-release | NOTE | 180 | ||
| windows-oldrel | NOTE | 173 | ||
| wasm-release | OK | 147 |
Exports:aggregate_spectraapply_spectrabase_linebig.headbig.tailcontinuum_removalcutfeaturesfeatures<-fill_spectraidsids<-kenstoneload_ozmelt_spectramutateplot_offsetplot_stackplot_summarypostResampleSpectrorbind.Spectrarbind.SpectraDataFrameresrnvseparatesnvspectraSpectraspectra<-SpectraDataFramespectroSummarysplicesplitsubsetwlwl_unitswl_units<-wl<-
Dependencies:askpassbase64encbaselineBiasedUrnbslibcachemclassclassIntclicpp11data.tableDBIdigestdplyre1071epiRevaluatefarverfastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverfsgdtoolsgenericsggplot2gluegtablehighrhtmltoolsisobandjquerylibjsonliteKernSmoothknitrlabelinglatticelifecyclelubridatemagrittrMASSMatrixmemoisemimeofficeropensslpanderpillarpkgconfigplyrproxypurrrR6raggrappdirsRColorBrewerRcppreshape2rlangrmarkdowns2S7sassscalessfsignalSparseMstringistringrsurvivalsyssystemfontstextshapingtibbletidyrtidyselecttimechangetinytexunitsutf8uuidvctrsviridisLitewithrwkxfunxml2yamlzipzoo
A quick start to the spectacles package
Rendered fromquickstart.Rmdusingknitr::rmarkdownon May 22 2026.Last update: 2020-09-09
Started: 2020-09-09
Spectral modelling and predictions using the caret package
Rendered frominterfacing-with-caret.Rmdusingknitr::rmarkdownon May 22 2026.Last update: 2021-01-10
Started: 2020-09-04
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Storing, Manipulating and Analysis Spectroscopy and Associated Data in R | spectacles-package |
| Aggregates spectral and data information | aggregate_spectra aggregate_spectra,Spectra-method aggregate_spectra,SpectraDataFrame-method |
| Apply a function on the spectra of a Spectra* object | apply_spectra |
| Australia spectra library data set | australia oz |
| Baseline correction using the baseline package | base_line base_line,Spectra-method |
| Return the First or Last Part of an Object | big.head big.tail |
| Continuum removal | continuum_removal |
| Manipulating the wavelength range of a 'Spectra' object | cut cut,Spectra-method |
| Retrieve dimensions of Spectra* objects | dim dim.Spectra dimensions length length.Spectra ncol,Spectra-method nrow,Spectra-method |
| Extracting and replacing parts of Spectra* objects | $ $,SpectraDataFrame-method $<- $<-,Spectra-method extraction-methods [ [,Spectra,ANY,ANY,missing-method [,Spectra-method [,SpectraDataFrame,ANY,ANY,missing-method [<- [<-,SpectraDataFrame-method [[ [[,Spectra-method [[,SpectraDataFrame,ANY,missing-method [[<- [[<-,Spectra,ANY,missing,ANY-method [[<-,Spectra,ANY,missing-method [[<-,Spectra-method |
| Retrieves or sets the data slot of a SpectraDataFrame object. | features features,SpectraDataFrame-method features-methods features<- features<-,Spectra-method features<-,SpectraDataFrame-method |
| Fill missing wavelengths of a Spectra* object with a given value | fill_spectra fill_spectra,Spectra-method |
| Retrieves or sets the ids of a 'Spectra*' object. | ids ids,Spectra-method ids<- ids<-,Spectra-method ids<-,SpectraDataFrame-method |
| Kennard-Stone algorithm for optimal calibration set selection. | kenstone kenstone,Spectra-method |
| Load the australia dataset | load_oz |
| Melts the spectra data of a Spectra object and returns it as wide format. | melt_spectra melt_spectra,Spectra-method melt_spectra,SpectraDataFrame-method melt_spectra-methods |
| Mutate a Spectra* object by transforming the spectra values, and/or adding new or replacing existing attributes. | mutate mutate,Spectra-method mutate.Spectra |
| Offset plot of a collection of spectra | plot_offset plot_offset,Spectra-method |
| Stacked plot of a collection of spectra | plot_stack plot_stack,Spectra-method |
| Summary plot of a collection of spectra | plot_summary plot_summary,Spectra-method |
| Plots an object inheriting from the Spectra class | plot plot,Spectra,ANY-method plot-Spectra plot.Spectra |
| Calculates performance indictors across resamples | postResampleSpectro spectroSummary |
| Stacking 'Spectra' objects together | rbind rbind.Spectra rbind.SpectraDataFrame |
| Spectral resolution | res res,integer-method res,numeric-method res,Spectra-method res,SpectraDataFrame-method |
| Separates a 'Spectra*' object into a calibration and a validation set. | separate separate,Spectra-method separate.Spectra |
| Standard and Robust Normal Variate transformations | rnv snv |
| Constructor for the Spectra class. | Spectra |
| Spectra* classes | as.data.frame.SpatialSpectra as.data.frame.Spectra as.data.frame.SpectraDataFrame names.SpectraDataFrame names<-.SpectraDataFrame print,Spectra-method show,Spectra-method spectacles Spectra-class SpectraDataFrame-class |
| Retrieves or sets the spectra of a 'Spectra*' objects. | spectra spectra,data.frame-method spectra,Spectra-method spectra,SpectraDataFrame-method spectra-methods spectra<- spectra<-,data.frame-method spectra<-,Spectra-method |
| Constructor for the SpectraDataFrame class. | SpectraDataFrame |
| Splice correction of a spectra collected using ASD hardware | splice splice,Spectra-method |
| Split a Spectra* object using factors | split split,Spectra-method split.Spectra |
| Subset SpectraDataFrame object | subset subset,SpectraDataFrame-method subset.SpectraDataFrame |
| Summary | print.summary.Spectra summary summary.Spectra |
| Retrieves or sets the wavelengths of a 'Spectra*' object. | wl wl,Spectra-method wl<- wl<-,data.frame-method wl<-,Spectra-method |
| Wavelengths of Spectra* objects | wl_units wl_units,Spectra-method wl_units<- wl_units<-,Spectra-method |
