Re: [R] Area Under a Curve

2008-07-02 Thread bartjoosen
You can take a look at AUC in the PK package stephen sefick wrote: > > 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 the

Re: [R] Area Under a Curve

2008-07-01 Thread Rolf Turner
On 2/07/2008, at 10:38 AM, stephen sefick wrote: 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

[R] Area Under a Curve

2008-07-01 Thread stephen sefick
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(