View source: R/integrate_peak.R
integrate_peak | R Documentation |
Integrate FFF peaks
integrate_peak(x, y, injvol = 0.001, flowrate = 0.001)
x |
A numeric vector of retention times, in minutes. |
y |
A numeric vector of detector responses, matching x in length. |
injvol |
The injection volume in litres. |
flowrate |
The detector flow rate in litres per minute. |
A number representing the integrated peak area.
x <- seq(0, 10, by = .1)
y <- exp(-(x - 5) ^ 2 / 2) # gaussian peak
integrate_peak(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.