I have this data for 50 years in one csv file. And I want to divide the data into month-wise into 12 csv files. Example: One file will have only January data for all 50 years.
How do I read/prepare the data? I have to do it in R.
YEAR    Month   level 
1900    1   1.11
1900    2   1.64
1900    3   1.35
1900    4   4.26
1900    5   4.91
1900    6   0.62
1900    7   5.6
1900    8   2.12
1900    9   5.99
1900    10  4.74
1900    11  1.69
1900    12  0.39
Thanks!