View source: R/getters_and_setters.R
meta | R Documentation |
meta
returns metadata of spectra
meta(x, label, sample, simplify = FALSE, quiet = TRUE) ## S3 method for class 'spectra' meta(x, label = NULL, sample = NULL, simplify = FALSE, quiet = TRUE)
x |
spectra object |
label |
metadata column index or label |
sample |
sample index or name |
simplify |
boolean. defaults to FALSE |
quiet |
boolean. warn about non-existent metadata? defaults to TRUE |
data frame or vector
meta(spectra)
: get metadata
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) spec = normalize(spec) meta(spec, "normalization_magnitude")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.