Extract the MS1 data from an mzML nodeset
grabMzmlMS1(xml_data, rtrange, file_metadata, prefilter, incl_polarity)
A `data.table` with columns for retention time (rt), m/z (mz), and intensity (int).
An `xml2` nodeset, usually created by applying `read_xml` to an mzML file.
A vector of length 2 containing an upper and lower bound on retention times of interest. Providing a range here can speed up load times (although not enormously, as the entire file must still be read) and reduce the final object's size.
Information about the file used to decode the binary arrays containing m/z and intensity information.
The lowest intensity value of interest, used to reduce file size (and especially useful for profile mode data with many 0 values)
Boolean determining whether the polarity of the scan should be returned as a column in the table (positive mode = 1, negative mode = -1)