View source: R/peakAreaCalculator.R
peakAreaCalculator | R Documentation |
This function calculates area under the curve using a trapezoid method.
peakAreaCalculator(x, y)
x |
is a vector of x values. |
y |
is a vector of y values. |
A number for the integrated peak area.
data("peak_spline")
rt <- peak_spline[, 1]
int <- peak_spline[, 2]
peakAreaCalculator(rt, int)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.