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

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/generateLOBdbase.R

Description

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

Usage

1

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

1
2
3
4
5
6
7
8
## 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

LOBSTAHS documentation built on Nov. 8, 2020, 6:47 p.m.