Scalar names in table
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
Scalar names in table
I want to create a table with two columns. First column should be the names of the scalars and the second column the value. Part two is solved. Is it possible to create a loop and get the names of the scalars in col1?
-
- EViews Developer
- Posts: 560
- Joined: Thu Apr 25, 2013 7:48 pm
Re: Scalar names in table
Hello,
Sure, here's a small example.
Sure, here's a small example.
Code: Select all
create u 1
table(3,2) t
t(1,1) = "x"
t(2,1) = "y"
t(3,1) = "z"
t(1,2) = 1
t(2,2) = 2
t(3,2) = 3
for !i = 1 to t.@rows
%name = t(!i,1)
scalar {%name} = @val(t(!i,2))
next
Re: Scalar names in table
Thank you, I will try that!
Who is online
Users browsing this forum: No registered users and 28 guests