I have trouble to reorganize a data frame according to the date and station. Currently I have this:
STATION Latitude Longitude 01/05/2007 01/06/2007 01/07/2007 01/08/2007 01/09/2007
1001 X1 Y1 12,27 12,33 6,26 2,75 1,15
1002 X2 Y2 12,14 5,99 3,51 2,98 1,92
1003 X3 Y3 0 0 0 0 0
And I would like something like this:
Date Station Latitude Longtitude Values
01/05/2007 1001 X1 Y1 12,27
01/06/2007 1001 X1 Y1 12,33
01/07/2007 1001 X1 Y1 6,26
01/08/2007 1001 X1 Y1 2,75
01/09/2007 1001 X1 Y1 1,15
01/05/2007 1002 X2 Y2 12,14
01/06/2007 1002 X2 Y2 5,99
01/07/2007 1002 X2 Y2 3,51
01/08/2007 1002 X2 Y2 2,98
01/09/2007 1002 X2 Y2 1,92
01/05/2007 1003 X3 Y3 0
01/06/2007 1003 X3 Y3 0
01/07/2007 1003 X3 Y3 0
01/08/2007 1003 X3 Y3 0
01/09/2007 1003 X3 Y3 0
Thanks!!!
EDIT It seems that when there are too much columns, there is a problem in keeping the head correct