Hi,
I think this question was asked before but I cannot find the answer in the forum or help. Is there a way of reading a csv table into EViews but storing it as a table object in an existing workfile (not as a new workfile)?
Thanks,
Javier
Reading CSV tables
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Reading CSV tables
Unfortunately not, but I'll ask our Table Monkey to whip something up for EViews 7.
Follow us on Twitter @IHSEViews
Re: Reading CSV tables
This should work, but I don't know how to obtain the number of obervations of an Alpha object (tried @obs and others to no effect).
I have assumed 23 observations:
Regards,
Javier
I have assumed 23 observations:
Code: Select all
'----------------------------------------------------------------------------------------------------------
'Creates a table out of a .csv file
%tabfile="filename.csv"
wfopen %tabfile
group g series*
!c=g.@count
!r=23
table(!r,!c) ch_table
for !j=1 to !c
For !i=1 to !r
%ser="series"
If !j<10 then
%ser="series0"
endif
ch_table(!i,!j)={%ser}{!j}(!i)
next
next
delete series* g
Regards,
Javier
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Who is online
Users browsing this forum: No registered users and 26 guests