Learn R Programming

spectrolab (version 0.0.18)

meta: Get metadata

Description

meta returns metadata of spectra

Usage

meta(x, label, sample, simplify = FALSE, quiet = TRUE)

# S3 method for spectra meta(x, label = NULL, sample = NULL, simplify = FALSE, quiet = TRUE)

Value

data frame or vector

Arguments

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

Methods (by class)

  • meta(spectra): get metadata

Author

Jose Eduardo Meireles

Examples

Run this code
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