[R] Help with a for complex for loop that looks into another data frame

2014-11-07 Thread Yan Wu
Hello everyone! I am working on a stock trading algorithm. I have created a data frame with the stocks, and a summary data frame, master_df_ex, and master_df_ex_sum, respectively. The goal is to create something each day that has equal long and shorts, and thus for each day, the sum of the ls_fla

Re: [R] EM algorithm for ARIMA models

2014-11-07 Thread Karim Mezhoud
EBarrays http://www.bioconductor.org/packages/release/bioc/html/EBarrays.html Ô__ c/ /'_;kmezhoud (*) \(*) ⴽⴰⵔⵉⵎ ⵎⴻⵣⵀⵓⴷ http://bioinformatics.tn/ On Fri, Nov 7, 2014 at 4:23 PM, Mathias Martens wrote: > Hi there,I am working on a time series dataset with a lot of missing data > (aro

[R] EM algorithm for ARIMA models

2014-11-07 Thread Mathias Martens
Hi there,I am working on a time series dataset with a lot of missing data (around60%).Specifically, I need to fit an ARIMA model to this data and I found thatExpectation-Maximization (EM) algorithm using Kalman filter could beusefull.Anyone know if already exist a package for this?Another approa

Re: [R] problem with function "polygon"

2014-11-07 Thread Eric Elguero
On 11/07/2014 04:35 PM, Duncan Murdoch wrote: You are not using the polygon() function from the graphics package, you're using one coming from somewhere else (maybe an old version of R, or some package). The polygon() function in the graphics package doesn't call .Internal(polygon(..., it calls

Re: [R] Daylight Saving Time

2014-11-07 Thread Prof Brian Ripley
On 07/11/2014 10:21, Vasantha Kumar Kesavan wrote: I am Sorry for not explained my requirement to you properly. As you told in Windows I need to update the $R_HOME/share/zoneinfo with the latest time zone information, since R is not using the operating system time zone files. Then I have updated

Re: [R] problem with function "polygon"

2014-11-07 Thread Duncan Murdoch
On 07/11/2014 10:05 AM, Eric Elguero wrote: Hi all, I'm trying to use the polygon function from the graphics package, and get this error message : > polygon(x=c(1,2,3,1),y=c(1,4,5,1)) Error in .Internal(polygon(xy$x, xy$y, col, border, lty, ...)) : there is no .Internal function 'polygon'

Re: [R] Lme4 Package Help!

2014-11-07 Thread Doran, Harold
Daniel Lmer has never returned p-values from a model summary; this is a well-known and discussed issue. You must have post-processed the data in some way to get the p-values. Our only way of helping is for you to provide sample code on what you did -Original Message- From: r-help-boun.

[R] problem with function "polygon"

2014-11-07 Thread Eric Elguero
Hi all, I'm trying to use the polygon function from the graphics package, and get this error message : > polygon(x=c(1,2,3,1),y=c(1,4,5,1)) Error in .Internal(polygon(xy$x, xy$y, col, border, lty, ...)) : there is no .Internal function 'polygon' That annoys me because polygon is actually call

Re: [R] R version 2.14.2 installation on mac OS X Yosemite

2014-11-07 Thread peter dalgaard
On 07 Nov 2014, at 01:00 , Uwe Ligges wrote: > > > On 06.11.2014 20:20, Dalela, Deepansh wrote: >> Hi, >> >> I noticed your email on the R support page. I am currently using SPSS 21 for >> mac, and need to install a macro plug-in which requires me o install R 2.14 >> (I already have R 3.0).

Re: [R] Daylight Saving Time

2014-11-07 Thread Vasantha Kumar Kesavan
I am Sorry for not explained my requirement to you properly. As you told in Windows I need to update the $R_HOME/share/zoneinfo with the latest time zone information, since R is not using the operating system time zone files. Then I have updated the zoneinfo directory, after that it is working fin

Re: [R] To calculate the month number between 2 dates

2014-11-07 Thread Achim Zeileis
On Fri, 7 Nov 2014, Arnaud Michel wrote: Hello Can one calculate the month number between two dates D1 <- "01/01/2007" and D2 <- "01/04/2009" ? Thank you One way is through zoo's yearmon class: R> library("zoo") R> D1 <- as.yearmon("01/01/2007", format = "%d/%m/%Y") R> D2 <- as.yearmon("01/0

[R] To calculate the month number between 2 dates

2014-11-07 Thread Arnaud Michel
Hello Can one calculate the month number between two dates D1 <- "01/01/2007" and D2 <- "01/04/2009" ? Thank you -- Michel ARNAUD Cirad __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide