readcsvSpec: Import a Single .csv Spectrum

Description Usage Arguments Value Author(s) References

View source: R/readcsvSpec.R

Description

Imports a single spectrum in .csv format and turns it into a binary data frame containing a "mass" and "Intensity" column.

Usage

1
readcsvSpec(spec_file, massCol, intenseCol)

Arguments

spec_file

A character string; the file path to the .csv spectrum that is to be imported.

massCol

A character string; the name of the mass column in the spectrum's .csv file.

intenseCol

A character string; the name of the intensity column in the spectrum's .csv file.

Value

Returns a binary data frame containing the imported data in a m/z column denoted "mass", and an intensity column denoted "Intensity".

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.