bl_corr | R Documentation |
bl_corr
performs baseline correction of the intensity values.
bl_corr(data, gamma = 0.5, subtract = NULL)
data |
a list object. Data extracted from a cdf file, ideally the output from extract_data(). |
gamma |
a float object. Correction factor between 0 and 1. 0 results in almost no values being subtracted to the baseline, 1 results in almost everything except the peaks to be subtracted to the baseline. Default is 0.5. |
subtract |
a list object. Data extracted from a cdf file, ideally the output from extract_data(). |
This function performs baseline correction and baseline subtraction for TIC values.
A data.frame object. A data frame of the overall time index, the x-axis retention time, the y-axis retention time, and the baseline corrected total intensity values.
file <- system.file("extdata","sample1.cdf",package="gcxgclab")
frame <- extract_data(file,mod_t=.5)
sm_frame <- smooth(frame, lambda=10)
blc_frame <- bl_corr(sm_frame, gamma=0.5)
plot_chr(blc_frame, title='Baseline Corrected')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.