Ptit_Bleu
2007-Sep-17 10:08 UTC
[R] Must be easy, but haven't found the function (numerical integration)
Hi, 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. I looked at ?integrate but, as far as I understood (that is, not very much, due to my poor english), it seems that it doesn't work with values in data frame. Could you please help me to do this ? Thanks in advance, Have a nice week, Ptit Bleu. -- View this message in context: http://www.nabble.com/Must-be-easy%2C-but-haven%27t-found-the-function-%28numerical-integration%29-tf4465684.html#a12732936 Sent from the R help mailing list archive at Nabble.com.
Paul Smith
2007-Sep-17 13:24 UTC
[R] Must be easy, but haven't found the function (numerical integration)
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. > I looked at ?integrate but, as far as I understood (that is, not very much, > due to my poor english), it seems that it doesn't work with values in data > frame. > > Could you please help me to do this ?I admit that others may find better solutions, but a possible solution could be summing the areas of the trapezoids over the sequence of them. It would be easy to program a function to do that, I guess Paul
Hi, When we install windows R 2.5.1 on a network drive ( the "P: ' drive, actually a samba public share ) R runs well but the windows help is unavailable. It complains about "Navigation to the webpage was cancelled" Does anyone know how to fix that? Thanks, Bill
GOUACHE David
2007-Sep-18 11:07 UTC
[R] RE : Must be easy, but haven't found the function (numerical integration)
try : library(Bolsatd) ?sintegral or: library(caTools) ?trapz David Gouache Arvalis - Institut du V?g?tal Station de La Mini?re 78280 Guyancourt Tel: 01.30.12.96.22 / Port: 06.86.08.94.32 -----Message d'origine----- De?: Ptit_Bleu [mailto:ptit_bleu at yahoo.fr] Envoy??: lundi 17 septembre 2007 12:09 ??: r-help at stat.math.ethz.ch Objet?: [R] Must be easy,but haven't found the function (numerical integration) Hi, 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. I looked at ?integrate but, as far as I understood (that is, not very much, due to my poor english), it seems that it doesn't work with values in data frame. Could you please help me to do this ? Thanks in advance, Have a nice week, Ptit Bleu. -- View this message in context: http://www.nabble.com/Must-be-easy%2C-but-haven%27t-found-the-function-%28numerical-integration%29-tf4465684.html#a12732936 Sent from the R help mailing list archive at Nabble.com.
John Wilkinson_dsl
2007-Sep-19 21:01 UTC
[R] Must be easy, but haven't found the function (numerical integration)
Ptit Bleu. try the 'adapt' function for multi-dimensional numerical integration. library(adapt) Adaptive Numerical Integration in 2?20 Dimensions John Checked by AVG Free Edition. 11:53
Seemingly Similar Threads
- Problem with save or/and if (I think but maybe not ...)
- Sweave : change value in rnw file to generate multiple "single" reports ?
- find a sequence of characters in a vector
- Best way to select good points in a noisy signal ?
- Friendly way to link R - MySQL and non-(R and Mysql) users ?