[R] Calculate area under a curve

stephen sefick ssefick at gmail.com
Thu Jul 1 20:16:40 CEST 2010


Don't sorry about n it is only necessary for using a and b which are
the upper and lower limit of integration and n is the # of
sub-intervals.  You can ignore all else and use x and y.  I will fix
the documentation soon.  I did a rather bad job on that help document.
kindest regards,

Stephen Sefick

On Thu, Jul 1, 2010 at 1:02 PM, suse <meyfarth at uni-potsdam.de> wrote:
>
> Thank you, seems to be the right thing for me. But what is this "n" for? The
> number of iteration steps as mentioned on other pages for the simpson rule?
> "number of divisions" as said on the help page I don't understand. ("a" and
> "b" can be ignored, if I got it right?!). Thanks again!
>
>
> stephen sefick wrote:
>>
>> simp() in the StreamMetabolism package may do the trick.  I have used
>> this on time series of chemical constituent masses.
>> hth,
>>
>> Stephen Sefick
>>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Calculate-area-under-a-curve-tp2275283p2275512.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Stephen Sefick
____________________________________
| Auburn University                                   |
| Department of Biological Sciences           |
| 331 Funchess Hall                                  |
| Auburn, Alabama                                   |
| 36849                                                    |
|___________________________________|
| sas0025 at auburn.edu                             |
| http://www.auburn.edu/~sas0025             |
|___________________________________|

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis



More information about the R-help mailing list