Learn R Programming

ArArRedux (version 0.1)

loaddata: Load mass spectrometer data

Description

Loads a .csv file with raw mass spectrometer data

Usage

loaddata(fname, masses, MS = "ARGUS-VI", PH = FALSE)

Arguments

fname
the file name, must end with .csv
masses
a vector of strings denoting the order of the isotopes listed in the table
MS
the type of mass spectrometer
PH
a boolean indicating whether the data are to be treated as multicollector (PH=FALSE) or 'peak hopping' (PH=TRUE) data. The default is PH=FALSE.

Value

  • if PH=FALSE: an object of class timeresolved if PH=TRUE: an object of class PHdata

Examples

Run this code
samplefile <- system.file("Samples.csv",package="ArArRedux")
masses <- c("Ar37","Ar38","Ar39","Ar40","Ar36")
m <- loaddata(samplefile,masses) # samples and J-standards
plot(m,"MD2-1a","Ar40")

Run the code above in your browser using DataLab