as_spectra.matrix {spectrolab} | R Documentation |
Convert matrix to spectra
Description
Convert matrix to spectra
Usage
## S3 method for class 'matrix'
as_spectra(x, name_idx = NULL, meta_idxs = NULL)
Arguments
x |
matrix |
name_idx |
column index with sample names. Defaults to NULL |
meta_idxs |
column indices with metadata (not name and not value). Defaults to NULL |
Value
spectra object
Author(s)
Jose Eduardo Meireles
[Package spectrolab version 0.0.19 Index]