set workfile range to imported data series

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Jariel
Posts: 12
Joined: Wed May 13, 2015 8:25 am

set workfile range to imported data series

Postby Jariel » Wed Dec 02, 2015 4:34 pm

I got a workfile with an equation in it, and a csv file with data in it.
I want both the workfile and the csv file merged into the same workfile, but the workfile range should equal the range of the csv file.

If i do this:

Code: Select all

wfopen equation.WF1 import data.csv
Then the range of the workfile equals the equation.WF1 (but i want it to equal data.csv)

I basically want to do this:

Code: Select all

wfopen data.csv
The range gets set to the range i want that way.

But i can't just use the import command to get the equation:

Code: Select all

import equation.WF1
I don't know the needed range beforehand, so i can't use pagestruct either.

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

Re: set workfile range to imported data series

Postby EViews Gareth » Wed Dec 02, 2015 5:15 pm

Import has a resize option that tells EViews to resize the destination workfile to accommodate all of the data in the source file.

Jariel
Posts: 12
Joined: Wed May 13, 2015 8:25 am

Re: set workfile range to imported data series

Postby Jariel » Wed Dec 02, 2015 5:19 pm

Thanks must have missed that.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests