powered by
median computes the median spectrum
median
# S3 method for spectra median(x, na.rm = TRUE, keep_txt_meta = TRUE, ...)
single spectrum
spectra
boolean. remove NAs? Defaults to TRUE
try to keep text in the metadata
nothing
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) median(spec)
Run the code above in your browser using DataLab