Learn R Programming

SPARRAfairness (version 0.1.0.0)

integral: integral() Quick form for trapezoidal integration over range of x

Description

integral() Quick form for trapezoidal integration over range of x

Usage

integral(x, y = NULL)

Value

trapezoidal estimate of integral of the xth value of y over range of x.

Arguments

x

x co-ordinates, or nx2 matrix of points

y

y co-ordinates