View source: R/stats_function_overloads.R
median.spectra | R Documentation |
median
computes the median spectrum
## S3 method for class 'spectra' median(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) median(spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.