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
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 -
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 |
3 matches
Mail list logo