names-set-.spectra: Set spectra sample names

names<-.spectraR Documentation

Set spectra sample names

Description

names assigns sample names to lhs

Usage

## S3 replacement method for class 'spectra'
names(x) <- value

Arguments

x

spectra object (lhs)

value

values to be assigned (rhs)

Value

nothing. called for its side effect.

Author(s)

Jose Eduardo Meireles

Examples

library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
names(spec) = toupper(names(spec))

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