I have downloaded Primary Energy Consumption data from Estat.
The first row bears dates. I want the date to appear long and have PEC as variable name as column header.
I have checked other responses in the forum and tried to manipulate v2 etc. as d2005, d2006 etc. and continue like that dropping first row and changing strings to numeric etc but still I could not manage.
Dataex command output is like below. Thanks for helping.
The first row bears dates. I want the date to appear long and have PEC as variable name as column header.
I have checked other responses in the forum and tried to manipulate v2 etc. as d2005, d2006 etc. and continue like that dropping first row and changing strings to numeric etc but still I could not manage.
Dataex command output is like below. Thanks for helping.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str25 CountryName float(v2 v3) str7(v4 v5) float v6 "" 2005 2006 "2007 " "2008 " 2009 "AT" 100 99.7 "98.4 " "99.2 " 93.7 "BE" 100 99.7 "97.6 " "99.2 " 97 "BG" 100 103.3 "101.6 " "99.0 " 88 "CY" 100 104 "109.2 " "115.2 " 111.9 "CZ" 100 102.3 "102.7 " "100.0 " 94.5 "DE" 100 103.5 "98.2 " "99.7 " 93.3 "DK" 100 107.2 "104.7 " "102.1 " 98 "EE" 100 98.9 "116.5 " "101.8 " 81.9 "GR" 100 99.9 "100.1 " "100.6 " 97.2 "ES" 100 100.4 "102.1 " "98.4 " 90.4 "FI" 100 109.3 "107.4 " "102.9 " 96.4 "FR" 100 98.2 "96.9 " "97.9 " 94.4 "HR" 100 99.6 "103.2 " "100.6 " 97.9 "HU" 100 98.7 "96.3 " "95.5 " 90.9 "IE" 100 101.2 "106.9 " "104.7 " 99.7 "IT" 100 99 "98.8 " "97.4 " 90.7 "LT" 100 98.1 "100.6 " "102.7 " 98.3 "LU" 100 98.3 "96.6 " "96.6 " 90.9 "LV" 100 103.7 "106.2 " "101.9 " 98.7 "MT" 100 101 "103.6 " "104.6 " 96.5 "NL" 100 99.2 "99.0 " "99.7 " 96.5 "PL" 100 105 "104.5 " "105.8 " 101.8 "PT" 100 96.8 "96.0 " "95.0 " 95.1 "RO" 100 104.1 "103.8 " "103.5 " 90.5 "SE" 100 97.4 "96.8 " "96.4 " 87.9 "SI" 100 99.2 "100.5 " "106.6 " 94.1 "SK" 100 99 "94.3 " "97.5 " 89.1 end
Comment