View source: R/stats_function_overloads.R
mean.spectra | R Documentation |
mean
computes the arithmetic mean spectrum.
## S3 method for class 'spectra' mean(x, na.rm = TRUE, keep_txt_meta = TRUE, ...)
x |
spectra |
na.rm |
boolean. remove NAs? Defaults to TRUE |
keep_txt_meta |
try to keep text in the metadata |
... |
nothing |
single spectrum
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) mean(spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.