Spectra
Spectra copied to clipboard
Discussion: spectraData,spectraData<- to support also data.frame or other two-dimensional data structues
This question came up during the review for PR #247 :
Should we restrict the spectraData
and spectraData<-
methods to exclusively return/accept a DataFrame
?
Some backends, specifically those that store the data in a data.frame
or a database need to convert data to/from DataFrame
which can be inefficient. Maybe it would be better to relax the definition in the MsBackend
API to support more two-dimensional data structures such as data.frame
, DataFrame
(tibble
?).