2
In R, I have the following data:
id date
2380 10/30/12
2380 10/31/12
2380 11/1/12
2380 11/2/12
20103 10/30/12
20103 12/31/12
And I want to add a column with the order of the records according to date and id, for example:
id date ordem
2380 10/30/12 1
2380 10/31/12 2
2380 11/1/12 3
2380 11/2/12 4
20103 10/30/12 1
20103 12/31/12 2
20100 10/05/12 2
20100 05/04/12 1
20100 11/1/12 3