Description Usage Arguments Author(s) Examples
View source: R/Methods-MetabolomicsSet-IO.R
This function exports a mSet-class
object into separate
text files (i.e. csv, tsv and txt).
1 2 3 | export_txt(object, path, prefix, sep = "\t", quote = FALSE,
sample_names_head = "Sample name",
feature_names_head = "Metabolite name")
|
object |
An object that inherits from the |
path |
A string. Must be an exist directory to save the text files. |
prefix |
A string to be prepend to the output file names. If is missing, nothing will be prepended. |
sep |
Can be either tab, comma, or any separater. |
quote |
A logical value (TRUE or FALSE) whether add quotes to each column.
See |
sample_names_head |
A string. The name of the column for sample names. |
feature_names_head |
A string. The name of the column for feature names. |
Chenghao Zhu
1 2 3 4 | data(lipid)
dir.create("~/lipid-data")
export_txt(lipid, "~/lipid-data")
export_txt(lipid, "~/lipid-data", prefix = "lipid", sep = ",")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.