as.data.frame-methods {hyperSpec} | R Documentation |
as.data.frame
returns x@data
as.long.df
returns a long-format data.frame
as.matrix
returns the spectra matrix x@data$spc
## S4 method for signature 'hyperSpec, missing, missing': as.data.frame(x, row.names = NULL, optional = FALSE, ...) as.long.df (x, rownames = FALSE) ## S4 method for signature 'hyperSpec': as.matrix(x, ...)
x |
a hyperSpec object |
row.names, optional, ... |
ignored |
rownames |
should the rownames be in column .rownames of
the long-format data.frame? |
Long-format data.frame: this is the stacked or molten version of x@data
.
x@data
and x@data$spc
, respectively.
C. Beleites
stack
and melt
for other
functions producing long-format data.frames.
as.data.frame (chondro [1:3,, 600:620]) as.matrix (chondro [1:3,, 600:620])