Transposing an imported Excel file

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

catherinebrunet
Posts: 3
Joined: Mon Aug 03, 2015 8:18 am

Transposing an imported Excel file

Postby catherinebrunet » Mon Aug 03, 2015 8:25 am

I am seeking to import an Excel file into Eviews8, the dataset is relatively large (500 variables x 50 years) such that the data is set horizontally a opposed to vertically. As such, I need to transpose the data prior to importing it (please see the attached Excel file for an example of how the data is structured). I usually import data, for vertically-oriented Excel files, with the following command:

pageselect A3260031
import "path\CANSIM 326-0031.xls" range="Eviews" colhead=2 namepos=first @freq A 1960

What should I add to make sure the data is transposed? Thank you much in advance!
Attachments
Classeur1.xlsx
(14.66 KiB) Downloaded 322 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Transposing an imported Excel file

Postby EViews Gareth » Mon Aug 03, 2015 8:30 am

Add "byrow" as an argument prior to the range argument

catherinebrunet
Posts: 3
Joined: Mon Aug 03, 2015 8:18 am

Re: Transposing an imported Excel file

Postby catherinebrunet » Mon Aug 03, 2015 9:53 am

Add "byrow" as an argument prior to the range argument
This works perfectly, thank you!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests