[R] Must be easy, but haven't found the function (numerical integration)

bbolker bolker at ufl.edu
Mon Sep 17 17:32:20 CEST 2007




On 9/17/07, Ptit_Bleu <ptit_bleu at yahoo.fr> wrote:
> I have a data frame of 2 columns with the following types :
> data$day char
> data$value num
>
> And I plot my data with :
> plot(strptime(donnees$day,format="%Y-%m-%d %H:%M:%S"),donnees$value,
> type="l")
>
> And I'd just like to get the numerical value of the integration of this
> graph.

  Would cumsum (which simply finds the cumulative sum of a vector) be
sufficiently
accurate for your purposes?

  Ben Bolker

-- 
View this message in context: http://www.nabble.com/Must-be-easy%2C-but-haven%27t-found-the-function-%28numerical-integration%29-tf4465684.html#a12738241
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list