calcAreaLim: Area under a curve

Description Usage Arguments Details Value See Also

Description

Calculates the trapezoid area (boxes+traingles) under the curve y=f(x) up to a given x limit (xupper), when given

Usage

1
calcAreaLim(x, y, xupper = NULL)

Arguments

x

vector holding the x values

y

vector holding the y values

xupper

x value

Details

If xupper is not one of the x values, the corresponding y value is calculated using the approx function

Value

area under the curve

See Also

calcArea


pezzacolori/boris-r-misc documentation built on Sept. 14, 2021, 1:46 a.m.