powered by
meta returns metadata of spectra
meta
meta(x, label, sample, simplify = FALSE, quiet = TRUE)# S3 method for spectra meta(x, label = NULL, sample = NULL, simplify = FALSE, quiet = TRUE)
# S3 method for spectra meta(x, label = NULL, sample = NULL, simplify = FALSE, quiet = TRUE)
data frame or vector
spectra object
metadata column index or label
sample index or name
boolean. defaults to FALSE
boolean. warn about non-existent metadata? defaults to TRUE
meta(spectra): get metadata
meta(spectra)
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) spec = normalize(spec) meta(spec, "normalization_magnitude")
Run the code above in your browser using DataLab