exportDBtoCSV: Export a LOBSTAHS database (LOBdbase) object to a text file

View source: R/generateLOBdbase.R

exportDBtoCSVR Documentation

Export a LOBSTAHS database (LOBdbase) object to a text file

Description

Collects all elements of a LOBdbase-class object into a single table, then writes the table to a .csv file.

Usage

exportDBtoCSV(LOBdbase)

Arguments

LOBdbase

A LOBSTAHS "LOBdbase" object.

Details

exportDBtoCSV extracts data from all slots in a given "LOBdbase" object and flows it into a data frame. The data frame is then written to a .csv file with a series of plain-language column headers. The file name includes the database polarity mode and a timestamp (in user's local time) indicating the time and date of export.

Value

A .csv file containing data from a LOBdbase-class object.

Author(s)

James Collins, james.r.collins@aya.yale.edu

References

Collins, J.R., B.R. Edwards, H.F. Fredricks, and B.A.S. Van Mooy. 2016. LOBSTAHS: An adduct-based lipidomics strategy for discovery and identification of oxidative stress biomarkers. Analytical Chemistry 88:7154-7162

See Also

LOBdbase, LOBdbase, generateLOBdbase

Examples

## export default positive mode database to a text file

data("default.LOBdbase")

exportDBtoCSV(default.LOBdbase$positive)

## file is written to user's working directory, with filename containing
## polarity and timestamp of generation

vanmooylipidomics/LOBSTAHS documentation built on Oct. 30, 2022, 7:13 p.m.