trapz | R Documentation |
Numerically calculate area under an arbitrary curve (defined by x, y coord pairs) using trapezodial integration. See Wikipedia for more info on trapz integration.
trapz(x, y)
x |
vector (of length n) |
y |
vector (of length n) |
vector (of length n - 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.