mean.spectra {spectrolab} | R Documentation |
Mean spectrum
Description
mean
computes the arithmetic mean spectrum.
Usage
## S3 method for class 'spectra'
mean(x, na.rm = TRUE, keep_txt_meta = TRUE, ...)
Arguments
x |
spectra |
na.rm |
boolean. remove NAs? Defaults to TRUE |
keep_txt_meta |
try to keep text in the metadata |
... |
nothing |
Value
single spectrum
Author(s)
Jose Eduardo Meireles
Examples
library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
mean(spec)
[Package spectrolab version 0.0.19 Index]