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