Closed jorainer closed 3 years ago
Quick question before the review: why call this extractSpectraData()
and not spectraData()
in line with the Spectra
nomenclature?
Hm, good point. Well, mainly because we're actually extracting here also the m/z and intensity values and not just the spectraData
- but I can change that, no problem.
No, fine, let's keep it then. The might be an extensive operation for large data, so maybe the name extract will avoid it to be called spuriously.
extractSpectraData
to extract all data from anMSnExp
,Spectrum
orMSpectra
as aDataFrame
. This data could then be passed to theSpectra
constructor to create aSpectra
from the original object (see also issue https://github.com/rformassspectrometry/Spectra/issues/123).