export_excel: Export mSet object into a excel sheet

Description Usage Arguments Value Author(s)

View source: R/Methods-MetabolomicsSet-IO.R

Description

This function allows users to export a mSet object to an excel spreadsheet. The output is a spreadsheet with feature data on the left, sample table on the top and transposed, and the conc table in the middle.

This function uses the xlsx pacakge to write the data into excel format. Please make sure the package is pre-installed before using it.

Usage

1
2
3
export_excel(object, file, single_sheet = TRUE,
  conc_sheet_name = "intensity matrix",
  samp_sheet_name = "sample info", feat_sheet_name = "features info")

Arguments

object

A mSet-class or derived object.

file

A character string indicates the output path.

single_sheet

A boolean value, whether write all data slots into a single sheet or seprate sheets.

conc_sheet_name, samp_sheet_name, feat_sheet_name

Character values, with each indicating the sheet name of each data slot.

Value

A excel spreadsheet

Author(s)

Chenghao Zhu


zhuchcn/Metabase documentation built on July 23, 2019, 1:36 p.m.