Learn R Programming

spectrolab (version 0.0.18)

t.spectra: Spectra Transpose

Description

spectra are not transposable. Transpose the value instead

Usage

# S3 method for spectra
t(x)

Value

nothing. operation not allowed

Arguments

x

spectra

Author

Jose Eduardo Meireles

Examples

Run this code
library(spectrolab)
s = as_spectra(spec_matrix_example, name_idx = 1)

# This will throw an error
if (FALSE) {
t(s)
}
# But these options should work
t(value(s))
t(as.matrix(s))

Run the code above in your browser using DataLab