trapint: Integrates function by trapeziodal rule

View source: R/trapint.R

trapintR Documentation

Integrates function by trapeziodal rule

Description

Integrates function by trapeziodal rule

Usage

trapint(curve)

Arguments

curve

Required. A data frame of x and y values. Points must be sorted by x value.

Value

Returns the area under the curve.

Author(s)

Kevin Shook

Examples

## Not run: 
area <- trapint(curve)
## End(Not run)

KevinShook/WDPMr documentation built on April 23, 2022, 12:32 a.m.