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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to