Bhupendrasinh Thakre
2012-Sep-11 03:48 UTC
[R] help in running r query in pre defined time intervals
Hi Team, I am not sure how to run some r queries in continuos time interval for say in each 30 minutes. Will be very grateful if some one can give me some heads up in good direction. Unfortunately I dont have any query written or data which I can share and I know most of the respected people will not like it but it's kind of a thought which is perturbing me from some days. Thanks in advance. BR, BT [[alternative HTML version deleted]]
David Winsemius
2012-Sep-11 06:59 UTC
[R] help in running r query in pre defined time intervals
On Sep 10, 2012, at 8:48 PM, Bhupendrasinh Thakre wrote:> Hi Team, > > I am not sure how to run some r queries in continuos time interval for say in each 30 minutes. > Will be very grateful if some one can give me some heads up in good direction. > > Unfortunately I dont have any query written or data which I can share and I know most of the respected people will not like it but > it's kind of a thought which is perturbing me from some days. >The cut.POSIXt may be worth examinatuion:> table( cut( Sys.time() + rnorm(100, 0, 3600), "30 mins") )2012-09-10 21:31:00 2012-09-10 22:01:00 2012-09-10 22:31:00 2012-09-10 23:01:00 4 7 9 9 2012-09-10 23:31:00 2012-09-11 00:01:00 2012-09-11 00:31:00 2012-09-11 01:01:00 26 22 8 8 2012-09-11 01:31:00 2012-09-11 02:01:00 2012-09-11 02:31:00 5 1 1 -- David Winsemius, MD Alameda, CA, USA