Learn R Programming

spectrolab (version 0.0.12)

t.spectra: Spectra Transpose

Description

spectra are not transposable. Transpose the value instead

Usage

# S3 method for spectra
t(x)

Arguments

x

spectra

Value

nothing. operation not allowed

Examples

Run this code
# NOT RUN {
library(spectrolab)
s = as_spectra(spec_matrix_example, name_idx = 1)

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

Run the code above in your browser using DataLab