Re: [R] time series processing - count of datestamp delta's, per group

2014-03-24 Thread Martin Tomko
Dear Stephen, Thank you for your suggestion - I will give it a try. It looks like going in the right direction with the by() function, but your assumption about the successive observations is incorrect: I want all the date differences between successive observations of each separate user.² So I

Re: [R] time series processing - count of datestamp delta's, per group

2014-03-23 Thread Stephan Kolassa
Hi Martin, it sounds like you want the difference between the first and the last observation per user, not, e.g., all the date differences between successive observations of each separate user. Correct me if I'm wrong. That said, let's build some toy data: set.seed(1) dataset -

[R] time series processing - count of datestamp delta's, per group

2014-03-22 Thread Martin Tomko
Apologies if the question is a but naïve, I am a novice in time series data handling in R I have the following type of data, in a long format ( as called by the spacetime vignette – the table contains also space, not noted here): User | Date | Otherdata | A | 01/01/2014 | aa A | 01/01/2014 |