Hi all,
my dataset is like that:
id data time
1 01jan2018
1 01jan2018
1 03jan2018
1 03jan2018
1 03jan2018
1 06jan2018
.... ................
2 01jan2018
2 01jan2018
2 01jan2018
2 01jan2018
2 05jan2018
2 05jan2018
2 07jan2018
.... ................
so, I want that to become
id data time
1 01jan2018
1 02jan2018
1 03jan2018
1 04jan2018
1 05jan2018
1 06jan2018
.... ................
2 01jan2018
2 02jan2018
2 03jan2018
2 04jan2018
2 05jan2018
2 06jan2018
2 07jan2018
.... ................
Could anyone help me?
Thanks for each reply.
Related Posts with Manipulating datatime
t-test output table by groupHi all, It may seem a silly question but I'm struggling to create a table with a t test like this o…
create and call subroutine from the same .do fileHi, I have a large piece of code that I would like to break down in several smaller pieces of code …
data sorting helpHello, I am trying to find segregation by city and census tract. Attached is a snapshot of the data …
Meta ForestplotHi everyone, I hope someone can help me. When creating a forest of lnRR with the Stata16 new command…
Count the number of global variables defined and input it in another global variableHi, I would like to count the number of global variables defined and input it in another global var…
Subscribe to:
Post Comments (Atom)
0 Response to Manipulating datatime
Post a Comment