Re: [R] Aggregating 15 minute xts sequence to hourly

2014-06-18 Thread Costas Vorlow
[,1] 2012-05-02 10:00:004 2012-05-02 11:00:008 2012-05-02 12:00:00 12 2012-05-02 13:00:00 16 2012-05-02 14:00:00 20 2012-05-02 15:00:00 24 2012-05-02 16:00:00 28 2012-05-02 17:00:00 32 2012-05-02 18:00:00 36 2012-05-02 19:00:00 40 > How does this loo

Re: [R] Aggregating 15 minute xts sequence to hourly

2014-06-16 Thread Costas Vorlow
ur time stamp... __ *Costas Vorlow <http://www.gravatar.com/avatar/49a9dee59073b1ed4a36440a06aeb81b> * *http://www.linkedin.com/in/costasvorlow <http://www.linkedin.com/in/costasvorlow>* *http://www.vorlow.com* <http://www.vorlow.com> ▇ ▅ █ ▅ ▇ ▂ ▃ ▁ ▁ ▅ ▃ ▅ ▅

[R] Aggregating 15 minute xts sequence to hourly

2014-06-16 Thread Costas Vorlow
012-05-02 17:45:00 134 2012-05-02 18:45:00 150 2012-05-02 19:00:00 40 > I get the sum of every quarter within the hour on the third quarter. How can I implicitly calculate the sum of the quarterly data on the hour's close (10:00, 11:00,

[R] Collapsing data.frame to its or xts

2014-06-04 Thread Costas Vorlow
time series (its) if possible... Many thanks in advance for your input, Best, Costas [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.

[R] R command execution at specific time from within R

2013-12-23 Thread Costas Vorlow
Hello, I am trying to write a code that executes an R command at specific time intervals. É want R to do that instead of the operating system. Any help/pointer extremely welcome. Thanks in advance, Costas [[alternative HTML version deleted

[R] hhmm time format, strptime and %k

2012-11-28 Thread Costas Vorlow
ptime help-page suggests that it's suitable when AM hours are described with a single digit ("The 24-hour clock time with single digits preceded by a blank") but I can not get it to work. Thanks in advnace for your time and help. Best, Costas

[R] RGoogleTrends vs Google

2012-11-08 Thread Costas Vorlow
Anybody encountered the same problems? Best, Costas -- ______ *Costas Vorlow * *http://www.linkedin.com/in/costasvorlow* *http://www.vorlow.com* <http://www.vorlow.com> * * [[a

Re: [R] Vectorization instead of loops problem

2011-12-04 Thread Costas Vorlow
Anyways, thanks again for the pointers. BTW, is there a good & quick read/guide on vectorization in R that one could recommend? That would minimize my queries at least in the list. :-) Apologies again and best regards, Costas On 4 December 2011 17:45, Bert Gunter wrote: > Costas: (and thanks

Re: [R] Vectorization instead of loops problem

2011-12-04 Thread Costas Vorlow
Thanks Uwe. What happens if these are zoo (or time series) sequences/dataframes? \ I think your solution would apply as well, no? Thanks again & best wishes, Costas 2011/12/4 Uwe Ligges > > > On 04.12.2011 16:18, Costas Vorlow wrote: > >> Hello, >> >> I

[R] Vectorization instead of loops problem

2011-12-04 Thread Costas Vorlow
,-40] [2],[-10,-5,25] # as member #7 of x sequence is 1... etc. etc. Can I do the above avoiding for/next or while loops? I am not sure I can explain it better. Any help/pointer extremely welcome. Best regards, Costas -- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |c|o|s|t|a|s|@|v|o|r|l|o|w|.|o|r|g

Re: [R] tkrplot Newbie

2011-06-03 Thread Costas Vorlow
Jonathan Daily wrote: > According to documentation, tkrplot's fun parameter accepts a function > of no arguments. If you remove the arguments from your function, does > that kill the error message? > > On Fri, Jun 3, 2011 at 11:42 AM, Costas Vorlow > wrote: >> H

[R] tkrplot Newbie

2011-06-03 Thread Costas Vorlow
) Error in try(fun()) : could not find function "fun" > tkgrid(img) Is this a serious problem with the code? Thanks in advance, Costas __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

[R] Fwd: open.exe Virus W32.ATRAPS

2011-04-10 Thread Costas Vorlow
Hello, I am not sure if this is the correct mailing list to send this email... I was trying to install on windows XP latest R-2.12.2 and my unvirus program (Immunet 3.0) reports a virus at open.exe while this is unpacked: W32.ATRAPS Has anyone come across the same problem? Best, Costas

[R] tryCatch - Continuing for/next loop after error

2011-03-10 Thread Costas
mation and optimization routines), the problem still persists. Is this the correct way to use tryCatch (or try) or should these go inside the actual code bits (i.e., in a more low level fashion) that conduct the optimization and model estimation? Apologies if this i

[R] Ubuntu Maverick and revoIPC/doSMP

2011-02-23 Thread Costas
Hello, I am having trouple installing doSMP and revoIPC from: https://r-forge.r-project.org/R/?group_id=950 My Linux system: Linux 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:44 UTC 2011 x86_64 GNU/Linux Ubuntu 10.10 \n \l I get this reply: costas@ELEPHANT:~/Downloads$ sudo R CMD

[R] Intel i7 utilization

2010-10-05 Thread Costas
Hello, Is there a way to force through R the amount of the cpu's cores (or the cpu's utilization level) used under Windows 7 or Linux? Thanks, Costas __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

[R] Date/Time format

2010-09-27 Thread Costas
Hello, Is it possible to instruct (permanently) R to write on csv (and read from csv) time series, where the time stamp has a particular format: say: -mm-dd i.e., as in format(Sys.Date(), "%Y-%m-%d") Many thanks in advance, Costas __

[R] zoo, time() & index()

2010-08-01 Thread Costas
Hi, I have to zoo real valued time series "a" and "b" same length. is index(a)<-index(b) same as time(a)<-time(b)? Which one is better? Best, Costas __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/list

Re: [R] apply lm() for all the columns of a matrix

2008-04-09 Thread Costas Douvis
ublic Health > Catholic University of Leuven > > Address: Kapucijnenvoer 35, Leuven, Belgium > Tel: +32/(0)16/336899 > Fax: +32/(0)16/337015 > Web: http://med.kuleuven.be/biostat/ > http://www.student.kuleuven.be/~m0390867/dimitris.htm > > > - Original Message --

Re: [R] apply lm() for all the columns of a matrix

2008-04-09 Thread Costas Douvis
ijnenvoer 35, Leuven, Belgium > Tel: +32/(0)16/336899 > Fax: +32/(0)16/337015 > Web: http://med.kuleuven.be/biostat/ > http://www.student.kuleuven.be/~m0390867/dimitris.htm > > > - Original Message - > From: "Costas Douvis" <[EMAIL PROTECTED]>

[R] apply lm() for all the columns of a matrix

2008-04-09 Thread Costas Douvis
Hi all, My question is not really urgent. I can write a loop and solve the problem. But I know that I'll be in a similar situation many more times so it would be useful to find out the answer Is there a fast way to perform linear fit to all the columns of a matrix? (or in the one dimension of a m

[R] how to plot a map on a non-rectilinear grid

2008-03-17 Thread Costas Douvis
Hi everyone I have a matrix (let's say that it contains the values of elevation) and want to plot its values on a map using a function such as image.plot or filled.contour. The problem is that my grid is not rectilinear, it is bended. Here is an example lon<-matrix(0,20,25) lat<-matrix(0,20,25) e

[R] output into an unformatted direct fortran file

2008-01-07 Thread Costas Douvis
Hello everybody Is there a way to output data into a file like the unformatted, direct fortran files? That's the kind that can be opened with: open(30, file='file', format='unformatted', access='direct', rec=1000, convert='big endian') Thank you in advance Kostas Douvis