Opening CSV by Rows
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
Opening CSV by Rows
I am trying to open a CVS file which is transposed into rows. I have sucessfully used the "byrows" arguement in my wfopen function, but the mnemonic name I want is included in the second column rather than the in the first. Is there a way to open a CSV file by row and use the second column to name the series?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Opening CSV by Rows
Yes, Step 3 of the dialog allows you to specify how many header rows there are, and which row the names are in.
By the time you get to Step 3, you've already told EViews to transpose the data, so the columns are now rows.
By the time you get to Step 3, you've already told EViews to transpose the data, so the columns are now rows.
Re: Opening CSV by Rows
I should have been clearer. I need this to run automatically as part of a program. Thus far I have the following...
wfopen(d=new) "s:\DDLdownload\equitymsri.da.csv" byrow
The program is defaulting to using the first column as my series names. I need the second column.
wfopen(d=new) "s:\DDLdownload\equitymsri.da.csv" byrow
The program is defaulting to using the first column as my series names. I need the second column.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Opening CSV by Rows
Do it using the interface, then look at the command capture log to view the command line form. It will be something using the colhead= argument and the names= argument.
Re: Opening CSV by Rows
I can't figure it out, and I'm being asked by my superiors to stop spending time on this. Please let me know if there is a straightforward answer to this... Screenshot attached.
I need my series to be named according to column B and dated according to row 1
I need my series to be named according to column B and dated according to row 1
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Opening CSV by Rows
Can you provide the Excel file?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Opening CSV by Rows
wfopen test.csv byrow colhead=2 namepos=last
Re: Opening CSV by Rows
Excellent! Thanks very much!
Who is online
Users browsing this forum: No registered users and 1 guest
