Hi everyone,
I have monthly DTA files about electricity consumption in Spain. These files run from January 2021 to November 2023. So 35 separate monthly files.
Here is my aim:
Basically:
I would like to thank you in advance for your help.
Best,
Michael
Edit: -merge- is not possible, since these monthly files are huge and exceed the memory when merged together.
I have monthly DTA files about electricity consumption in Spain. These files run from January 2021 to November 2023. So 35 separate monthly files.
Here is my aim:
- I want to draw multiple lines from average consumption in January 2021, February 2021, March 2021, and so on in one and unique graph, if possible. Or one graph showing monthly average elec. consumption for 2021, one for 2022 and finally one for 2023.
- In particular, in June 2021 a new policy was implemented about electricity tariffs in Spain, so it would be nice to see at least some months before this change, and some months after this change.
- Also, if this is not recommended, I appreciate if you could give me some insights, please. Thank you.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long(id fecha_consumo) float(a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20 a21 a22 a23) 1001 20210101 .179 .113 .149 .115 .179 .114 .148 .115 .179 .113 .146 .113 .171 .117 .137 .125 .159 .134 .125 .136 .137 .157 .113 .148 1001 20210102 .115 .181 .114 .149 .115 .168 .131 .127 .134 .125 .166 .111 .142 .11 .175 .114 .148 .113 .143 .138 .146 .112 .146 .113 1001 20210103 .177 .115 .147 .113 .162 .144 .111 .141 .115 .151 .139 .112 .142 .112 .157 .149 .115 .147 .113 .183 .112 .147 .113 .161 1001 20210104 .136 .123 .144 .121 .175 .113 .147 .113 .172 .119 .135 .119 .135 .152 .112 .147 .112 .178 .111 .145 .113 .151 .14 .115 1001 20210105 .146 .119 .177 .115 .149 .115 .173 .121 .134 .122 .137 .153 .111 .145 .111 .18 .113 .144 .11 .154 .134 .12 .14 .122 end
Basically:
- -id- is the Household ID,
- -fecha_consumo- is the date in "long" format,
- -a0- up to -a23- are hourly electricity consumption from midnight (-a0-) up to 11 p.m (-a23-).
I would like to thank you in advance for your help.
Best,
Michael
Edit: -merge- is not possible, since these monthly files are huge and exceed the memory when merged together.
Comment