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!
Transposing an imported Excel file
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
- 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
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
This works perfectly, thank you!Add "byrow" as an argument prior to the range argument
Who is online
Users browsing this forum: No registered users and 2 guests
