Learn R Programming

gcxgclab (version 1.0.1)

phase_shift: Phase shift

Description

phase_shift shifts the phase of the chromatogram.

Usage

phase_shift(data, shift)

Value

A data.frame object. A list of two data frames. A TIC data frame and an MS data frame.

Arguments

data

a list object. Data extracted from a cdf file, ideally the output from extract_data().

shift

a float object. The number of seconds to shift the phase by.

Details

This function shifts the phase of the chromatogram up or down by the specified number of seconds.

Examples

Run this code
file <- system.file("extdata","sample1.cdf",package="gcxgclab")
frame <- extract_data(file,mod_t=.5)
shifted <- phase_shift(frame, -.2)
plot_chr(shifted, title='Shifted')

Run the code above in your browser using DataLab