I have a flat-csv file containing data in long format, that needs to be converted to a time series object. The format of the file looks like this:
DATE ID REGION VALUE
2016-03-10 10 DE001 2332,23
2016-03-10 10 DE001 2332,23
2016-03-10 10 DE002 2332,23
2016-03-10 11 DE001 2332,23
2016-03-10 11 DE002 2332,23
2016-03-10 12 DE001 2332,23
2016-03-11 10 DE001 2332,23
2016-03-11 10 DE001 2332,23
2016-03-11 10 DE002 2332,23
2016-03-11 11 DE001 2332,23
2016-03-11 11 DE002 2332,23
2016-03-11 12 DE001 2332,23
I want to group by ID and then by region, so that i have a different time-series for each ID-group containing several region observations for the complete available time-span.