How to fill table

For questions regarding programming in the EViews programming language.

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

mkhaled
Posts: 3
Joined: Mon Apr 17, 2023 2:18 pm

How to fill table

Postby mkhaled » Tue Apr 18, 2023 4:56 am

Hi,
I have created a table from scratch but having difficulty filling it with data. I already have multiple series in a group, all dated. I want to fill the table I created with them. What code could I use to do this. Also, if I want to add a row at the end of the table using different data, how would I fill it.

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

Re: How to fill table

Postby EViews Gareth » Tue Apr 18, 2023 6:53 am

Code: Select all

wfcreate m 1990 2020
series x=nrnd
series y=nrnd
group g x y

table mytab

'assign a single value
mytab(1,1) = "Test:"
mytab(1,2) = 3

'freeze a series into a table
freeze(tmptable) x.sheet

'insert a table into another  (inserting tmptable into mytab at row 2, col 1)
tmptable.copytable mytab 2 1

show tmptable
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 50 guests