readcsvDir: Import .csv Spectra from a Directory and Export

Description Usage Arguments Details Value Author(s) References

View source: R/readcsvDir.R

Description

Imports all .csv files in a directory, turns them into a binary data frame containing a "mass" and "Intensity" column, and outputs them as .rda files into an output directory. Allows for rapid import of many spectral datasets at once.

Usage

1
readcsvDir(direct, massCol, intenseCol, output)

Arguments

direct

The path to the directory where the .csv files are held.

massCol

A character string; the name of the mass column in the .csv files.

intenseCol

A character string; the name of the intensity column in the .csv files.

output

The path to the directory where the exported .rda files containing the binary spectral data frames should go.

Details

Assumes that the .csv files are organized in tidy format, i.e., columns are variables and rows are individual m/z observations.

Value

Returns a directory of .rda files containing binary spectral data frames into the output file path.

Author(s)

Kristen Yeh <kristenyeh@trentu.ca> Wesley Burr <wesleyburr@trentu.ca>

References

https://github.com/wesleyburr/subMaldi


wesleyburr/subMaldi documentation built on Oct. 1, 2021, 7:07 a.m.