I have the following variables in a dataframe:
App.Date App.No.
01/01/2012 A0001
01/01/2012 A0082
01/01/2012 F0003
02/01/2012 A0004
02/01/2012 A0055
03/01/2012 P0006
03/01/2012 A0007
03/01/2012 A0008
03/01/2012 A0009
......... ......
I want to create a variable which will track the ordering on each date The output will be another variable which will sequence and start on each change of date
App.Date App.No. Seq
01/01/2012 A0001 1
01/01/2012 A0082 2
01/01/2012 F0003 3
02/01/2012 A0004 1
02/01/2012 A0055 2
03/01/2012 P0006 1
03/01/2012 A0007 2
03/01/2012 A0008 3
03/01/2012 A0009 4
......... ...... .
How can I do it in R without for loop ? There are over 100k rows, have to create a series on each change of date.