[R] integration problem

Christoph Scherber Christoph.Scherber at uni-jena.de
Tue Oct 26 17:54:12 CEST 2004


Dear R users,

I have spectral data (say, wavelength vs. extinction coefficient) for 
which I´d like to calculate an integral (i.e. the area underneath the 
curve).

Suppose the (artificial) dataset is

lambda 	E
1 	2
2 	4
3 	5
4 	8
5 	1
6 	5
7 	4
8 	9
9 	8
10 	2



How can I calculate an integral  for these values using R?

Many thanks for any help!
Regards

Christoph




More information about the R-help mailing list