Command line for importing data in rows

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

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

renjinlu
Posts: 14
Joined: Tue Jan 06, 2009 8:34 pm

Command line for importing data in rows

Postby renjinlu » Tue Jan 06, 2009 8:47 pm

Hi, suppose I have an ASCII file with data in rows, what is the command line to import the data series row by row?

I know how to do this manually, but I am writing a program to import the data.

An imaginery ASCII data set would look like this:

GDP, 1, 3, 5, 7, 9
CONS, 0.5,2,3,5,7
M1,2,3,4,5,6

Thanks!

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

Re: Command line for importing data in rows

Postby EViews Gareth » Wed Jan 07, 2009 9:07 am

You want the READ command with a t option:

read(t) myfile.xls
Follow us on Twitter @IHSEViews

renjinlu
Posts: 14
Joined: Tue Jan 06, 2009 8:34 pm

Re: Command line for importing data in rows, Eviews

Postby renjinlu » Wed Jan 07, 2009 9:33 am

Hi, it works. You are great.

Just to help future readers to this forum:

To import "my.csv" with data series in rows, series name in the first column, data file layout rectangular, with 3000 data series, the command line to use is

read(t,rect, name, label=1) my.csv 3000

Thanks a lot!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 13 guests