Import text into string or table objec

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

hfwill
Posts: 6
Joined: Wed Mar 11, 2009 7:26 pm

Import text into string or table objec

Postby hfwill » Wed Oct 19, 2011 10:43 am

Can anyone tell me if it is possible (and if so, how) to import an external text file into (preferably) a string object or a table object via line command? I know it's possible interactively, but I want to perform the task within a program.

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

Re: Import text into string or table objec

Postby EViews Gareth » Wed Oct 19, 2011 10:59 am

You can bring the text file into a text object using the text.append proc. Then you can convert the text object into an SVector. If you really want a string object, you can convert the first element of the SVector into a string.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests