Learn R Programming

RAMClustR (version 1.3.1)

exportDataset: exportDataset

Description

export one of 'SpecAbund', 'SpecAbundAve', 'MSdata' or 'MSMSdata' from an RC object to csv

Usage

exportDataset(
  ramclustObj = NULL,
  which.data = "SpecAbund",
  label.by = "ann",
  appendFactors = TRUE
)

Value

nothing is returned. file exported as csf to 'datasets/*.csv'

Arguments

ramclustObj

ramclustR object to export from

which.data

name of dataset to export. SpecAbund, SpecAbundAve, MSdata, or MSMSdata

label.by

either 'ann' or 'cmpd', generally. name of ramclustObj slot used as csv header for each column (compound)

appendFactors

logical. If TRUE (default) the factor data frame is appended to the left side of the dataset.

Author

Corey Broeckling

Details

Useful for exporting the processed signal intensity matrix to csv for analysis elsewhere.

References

Broeckling CD, Afsar FA, Neumann S, Ben-Hur A, Prenni JE. RAMClust: a novel feature clustering method enables spectral-matching-based annotation for metabolomics data. Anal Chem. 2014 Jul 15;86(14):6812-7. doi: 10.1021/ac501530d. Epub 2014 Jun 26. PubMed PMID: 24927477.