phase_shift {gcxgclab} | R Documentation |
Phase shift
Description
phase_shift
shifts the phase of the chromatogram.
Usage
phase_shift(data, shift)
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.
Value
A data.frame object. A list of two data frames. A TIC data frame and an MS data frame.
Examples
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')
[Package gcxgclab version 1.0.1 Index]