Learn R Programming

EGAD (version 1.0.3)

get_auc: Calculates the area under a curve

Description

The function calculates the area under the curve defined by x and y

Usage

get_auc(x, y)

Arguments

x
numeric array
y
numeric array

Value

auc numeric value

Examples

Run this code
x <- 1:100
y <- 1:100 
auc <- get_auc(x,y)
 

Run the code above in your browser using DataLab