Learn R Programming

enviGCMS (version 0.5.7)

writeMSP: Write MSP files for NIST search

Description

Write MSP files for NIST search

Usage

writeMSP(mz, outfilename = "unknown")

Arguments

mz

a intensity vector, who name is the mass in m/z

outfilename

the name of the MSP file, default is 'unknown'

Value

none a MSP file will be created at the subfolder working dictionary with name 'MSP'

Examples

Run this code
# NOT RUN {
mz <- c(10000,20000,10000,30000,5000)
names(mz) <- c(101,143,189,221,234)
writeMSP(mz,'test')
# }

Run the code above in your browser using DataLab