Re: [R] Area between 2 curves

2012-05-01 Thread sappy
Yes, i have install the Package Bolstad. And it works (sintegral). -- View this message in context: http://r.789695.n4.nabble.com/Area-between-2-curves-tp4597813p4600629.html Sent from the R help mailing list archive at Nabble.com. __

[R] Area between 2 curves

2012-04-30 Thread sappy
Hello, i have a question calculating the shaped area between the two curves (see image). http://r.789695.n4.nabble.com/file/n4597813/test.png I try to use a Simpson-Integral but it doesn't work. R doesn't know the command! It is possible, that i need a library? Curve 1: y Curve 2: z

Re: [R] Area between 2 curves

2012-04-30 Thread R. Michael Weylandt
You can't just decide a command exists and try to use it by your arbitrarily chosen name did you look at the function integrate() which does exist? It uses a smarter algorithm than Simpson's rule. Alternatively, Simpson's rule is very easy to code with vectorization -- you should be able to

Re: [R] Area between 2 curves

2012-04-30 Thread Keith Jewell
A quick Google suggests that sintegral is in the Bolstad2 package: http://cran.r-project.org/web/packages/Bolstad2/ R. Michael Weylandt michael.weyla...@gmail.com wrote in message news:CAAmySGOCtNxWNHJDka=68criphxnppwap6fm7ufkhtx7xsz...@mail.gmail.com... You can't just decide a command exists