Importing transposed data

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

jthodge
Posts: 77
Joined: Tue Oct 21, 2008 5:52 am

Importing transposed data

Postby jthodge » Wed Oct 27, 2010 9:20 am

I apologize if this is a question with a simple answer or has already been asked.

But I'm trying to import data from an Excel 2007 (*.xlsx) file into an Eviews 7 workfile. The data has a transposed structure (i.e. with series names in the rows of the first column instead of along the first row).

I can't find any option for the import command similar to "t" as in read(b2,t) that I used when reading older versions of Excel files.

Am I missing something simple?

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

Re: Importing transposed data

Postby EViews Gareth » Wed Oct 27, 2010 10:16 am

It doesn't exist. The only way to read transposed data is with the read command, and as you point out, the read command does not support .XLSX

tchaithonov
Posts: 168
Joined: Mon Apr 13, 2009 7:39 am
Location: New York City

Re: Importing transposed data

Postby tchaithonov » Wed Oct 27, 2010 10:43 am

How about transposing your data in Excel first?

jthodge
Posts: 77
Joined: Tue Oct 21, 2008 5:52 am

Re: Importing transposed data

Postby jthodge » Wed Oct 27, 2010 11:37 am

The data is transposed in Excel because we have 1500+ variables with annual data over 35 years -- otherwise we'd exceed Excel's 256 column limit.

We'll probably just convert the xlsx files to the old xls format and use the read command.

A transpose option in the import command would be a nice feature in future versions of Eviews.

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

Re: Importing transposed data

Postby EViews Gareth » Wed Oct 27, 2010 11:40 am

It is actually quite tricky to do, but we get requests for it so often, we'll probably allocate some resources to it. Maybe only for Excel files though.

tchaithonov
Posts: 168
Joined: Mon Apr 13, 2009 7:39 am
Location: New York City

Re: Importing transposed data

Postby tchaithonov » Wed Oct 27, 2010 12:53 pm

The xlsx file format supports up to 65536 columns and 1048576 rows. It should be quite easy to handle a 1500+ by 35 dataset.

jthodge
Posts: 77
Joined: Tue Oct 21, 2008 5:52 am

Re: Importing transposed data

Postby jthodge » Thu Oct 28, 2010 7:26 am

Thanks tchaithonov.

I've been running my Excel 2007 in compatibility mode, which only has columns from A to IV (i.e. 256 columns). But when opening an .xlsx file, I now see that the columns range from A to XFD (i.e. 16,384 columns).

So no need to transpose my data anymore!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests