--- segue il messaggio inoltrato (the forwarded message follows) ---
--- Begin Message ---
Dear R users,
i am very new to R. i am working on the following data.

01.01.1967      0.87
02.01.1967      0.87
03.01.1968      0.87
04.01.1968      0.87
05.01.1969      0.87
06.01.1969      0.87
07.01.1970      0.87
08.01.1970      0.87
09.01.1971      0.87
10.01.1971      0.87
11.01.1972      0.87
12.01.1972      0.87
13.01.1973      0.69
14.01.1973      0.70
15.01.1974      0.71
16.01.1974      0.72




I want to reshape it in the following FORMAT

        1967    1968    1969    1970    1971    1972    1973    1974
1       0.87    0.87    0.87    0.87                            0.71
2       0.87    0.87    0.87    0.87                            0.72

OBVIOUSLY, I HAVE A LARGE AMOUNT OF DATA TO WORK WITH.i would also like to take into account the effect of leap year. For example if 1969 in a leap year then the column under it, has to have 1 extra reading.



Thanks in advance


--- End Message ---
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to