exportDataset: exportDataset

View source: R/exportDataset.R

exportDatasetR Documentation

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
)

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.

Details

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

Value

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

Author(s)

Corey Broeckling

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.


cbroeckl/RAMClustR documentation built on March 23, 2024, 6:45 p.m.