area: Compute area between two curves

Description Usage Arguments Value

View source: R/metaboGSE.R

Description

This function computes the area formed by two curves.

Usage

1
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


metaboGSE documentation built on Oct. 23, 2020, 8:14 p.m.