Nothing
auc <- function(x, y, from=min(x), to=max(x), ...) {
if (length(x) != length(y))
stop("x and y must have the same length")
if (length(unique(x))<2)
return(NA)
values <- approx(x, y, xout=sort(unique(c(from, to, x[x>from & x<to]))),...)
res <- .5*sum(diff(values$x)*(values$y[-1]+values$y[-length(values$y)]))
res
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.