Dear friends,
My data is in excel, I want to import it and transpose the rows and the columns to be able to set the data as time-series.
I would like to keep the value labels of the first branch (string) variable and assign it to the column varnames.
My data is in excel, I want to import it and transpose the rows and the columns to be able to set the data as time-series.
Code:
branch y2008 y2007 y2006 Field crops 4,016 3,614 3,253 Livestock 353 317 286 Fruit and vegetables 885 796 717 Growing of flowers, seeds and nursery products 603 543 489 Other agriculture industries 464 417 376 Mining of hard coal, and extraction of crude petroleum and natural gas 35,235 31,711 28,540 Other mining and quarrying products 17,900 16,110 14,499 Meat, fish, fruit and vegetables, dairy products and oil 4,283 3,855 3,470 Other food products and tobacco products 6,048 5,443 4,899 Textiles 4,632 4,169 3,752 Clothing 2,789 2,510 2,259 Manufacture of footwear, leather and leather products 1,811 1,630 1,467 Wood and wood products (excl. furniture) 1,920 1,728 1,555 Paper and cardboard, and products thereof 3,531 3,178 2,860 Printing and publishing 296 266 239 Refined petroleum, petrochemicals and man-made fibres 21,722 19,550 17,595 Industrial chemicals, fertilizers, pesticides and disinfectants 7,001 6,301 5,671
Comment