Function to extract m/z and intensity from each scan of Mass Spectrum

Share:

Description

Return mass/charge ration, absolute intensity and relative intensity for the given peak.

Usage

1
IndiMsScan(x, i)

Arguments

x

MassSpectrm slot of S4 class parse.Shimadzu.

i

series number of peaks which you want to plot

Details

Function to extract m/z and intensity from each scan of Mass Spectrum

Value

Return a data.frame of mass/charge ration, absolute intensity and relative intensity

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, i) 
{
    y <- data.frame(x[[i]]$b)
    colnames(y) <- c("mass", "absolute", "relative")
    return(y)
  }

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.