Re: [R] Counting things in a time series.

2010-11-21 Thread jim holtman
You never did show us what your data looks like. You could convert them to POSIXct, then use 'cut' to split them into the bins and then 'table' to count them. Try something like this: timeStamp - as.POSIXct('2010-11-21 00:00') + runif(50, 0, 86400) # day's worth of time # bin into 1 hour

Re: [R] Counting things in a time series.

2010-11-21 Thread Daniel Malter
Hi, these are pretty basic questions. You might want to pick up an introductory manual. Lets assume you have a time stamp that already indicates the hours. Assume you have 300 observations, each of which falls in one of 24 hours of observation. You easily get the number of obs in each hour with

[R] Counting things in a time series.

2010-11-20 Thread Noah Silverman
Hi, I have a process (not in R) that records events with a time stamp. So, I have a huge series of maybe 100,000 time stamps. I'd like to break it up into hourly (Or daily) intervals and then count how many events occurred in each interval. That way I can graph it. Ideally, converting the