meta-set: Set metadata

meta<-R Documentation

Set metadata

Description

meta sets metadata

Usage

meta(x, label = NULL, sample = NULL) <- value

Arguments

x

spectra object (lhs)

label

metadata column label

sample

sample name

value

rhs. TODO

Value

nothing. called for its side effect

Author(s)

Jose Eduardo Meireles

Examples

library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
meta(spec, "random") = rnorm(nrow(spec), mean(10), sd = 2)

spectrolab documentation built on April 3, 2025, 9:33 p.m.