readcsvDir.Rd
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.
readcsvDir(direct, massCol, intenseCol, output)
direct | The path to the directory where the |
---|---|
massCol | A character string; the name of the mass column in the
|
intenseCol | A character string; the name of the intensity column in
the |
output | The path to the directory where the exported |
Returns a directory of .rda
files containing binary spectral
data frames into the output
file path.
Assumes that the .csv
files are organized in tidy format, i.e.,
columns are variables and rows are individual m/z observations.
https://github.com/wesleyburr/subMaldi
Kristen Yeh <kristenyeh@trentu.ca> Wesley Burr <wesleyburr@trentu.ca>