tableWriter: tableWriter

View source: R/Functions_class_featureTable.R

tableWriterR Documentation

tableWriter

Description

Writes a feature table to a file in a given format.

Usage

tableWriter(
  df,
  fname,
  format = c("csv", "tsv", "instrumentList", "MetaboAnalyst"),
  moreArgs = list()
)

Arguments

df

feature table as data.frame, with mz and rt columns.

fname

file name

format

output format

moreArgs

named list of additional arguments to be passed to asInclusionlist or asMetaboAnalyst

Value

Returns nothing, but writes a file to disk

Examples

## Not run: 
MseekExamplePreload(data = FALSE, tables = TRUE)
tableWriter(tab1$df, "test_MA.csv", format = "MetaboAnalyst", moreArgs = list(groups = tab1$anagrouptable))

## End(Not run)


mjhelf/Mosaic documentation built on April 28, 2022, 11:32 a.m.