Writes all the data in a SummarizedExperiment or MetaboSet object to an Excel spreadsheet. The format is similar to the one used to read data in, except for the fact that EVERYTHING NEEDS TO BE WRITTEN AS TEXT. To fix numeric values in Excel, choose any cell with a number, press Ctrl + A, then go to the dropdown menu in upper left corner and choose "Convert to Number". This will fix the file, but can take quite a while.
Arguments
- object
a
SummarizedExperiment
orMetaboSet
object- file
path to the file to write
- ...
Additional parameters passed to
write.xlsx
Examples
data(example_set)
write_to_excel(example_set, file = "example_set.xlsx")
#> INFO [2025-06-23 22:38:42] Moved RP_pos_Datafile column to last to get meaningful column names for abundances