Learn R Programming

metaboGSE (version 1.2.5)

area: Compute area between two curves

Description

This function computes the area formed by two curves.

Usage

area(y1, y2, x = NULL)

Arguments

y1

A vector of y-coordinates for the first curve.

y2

A vector of y-coordinates for the second curve.

x

A vector of increasing x-coordinates. Default, an equidistant vector of length length(y1) from 0 to 1.

Value

The area