itrax_spectra: Import an individual spectra file

View source: R/itrax_spectra.R

itrax_spectraR Documentation

Import an individual spectra file

Description

Sometimes it is helpful to read an individual spectral file for diagnostics

Usage

itrax_spectra(filename, parameters = "settings.dfl", plot = TRUE, datapos = 37)

Arguments

filename

defines the name of the *.spe datafile from the core scanner to parse

parameters

optionally defines a relevant Q-Spec settings file in order to compute the energy scale, otherwise channel numbers are reported

plot

logical, if TRUE a side-plot is created

datapos

defines the row at which spectral data begins in the files

Value

a tibble of the parsed data

Examples

 itrax_spectra(filename   = system.file("extdata",
                                      "L000676.spe",
                                      package = "itraxR",
                                      mustWork = TRUE),
               parameters = system.file("extdata",
                                        "Results_settings.dfl",
                                        package = "itraxR",
                                        mustWork = TRUE)
               )


itraxR documentation built on July 26, 2023, 5:48 p.m.

Related to itrax_spectra in itraxR...