Exports the contents of a mass_dataset
object to files. The files can be in CSV or XLSX format.
Additionally, MS2 data can be exported in MSP or MGF format.
A mass_dataset
object to be exported.
The type of file to export the data to. Options are "csv" or "xlsx". Default is "csv".
The type of file to export the MS2 data to. Options are "msp" or "mgf". Default is "msp".
The directory where the exported files will be saved. Default is the current directory.
No return value. The function writes files to disk.
if (FALSE) { # \dontrun{
# Assuming 'data' is a mass_dataset object
export_mass_dataset(data, file_type = "csv", path = "output/")
} # }