Displaying 1 result from an estimated 1 matches for "tp18226826p18231936".
2008 Jul 01
2
Area Under a Curve
I would like to integrate the area under a curve without any smoothing or
the like- just on the raw numbers. I looked at integrate() but it requires
a function which I assume means something like x+x^2+x^3
is there a built in function in R for this?
#let's say
x <- seq(1:50)
y <- seq(1:50)
plot(y~x)
# the are would be 1250
# I would like to be able to do this but on more complicated