Splitting Table Rows into Individual Objects

For questions regarding programming in the EViews programming language.

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

jap1996
Posts: 4
Joined: Tue Mar 08, 2022 11:56 am

Splitting Table Rows into Individual Objects

Postby jap1996 » Thu Mar 17, 2022 10:23 am

Hi,
I have a 46/13 table and I am wondering if it is possible to split each row of the table into an individual vector or an individual 1/13 table?


table data

for !r=2 to 46
for !c=3 to 13
if @isempty(mscisectorref(!r,!c))=1 then
%code=" "
else
%idc=@trim(mscisectorref(!r,2))
%ids=@trim(mscisectorref(!r,!c))
%code="mx"+%idc+"0"+%ids

data(!r,!c)=%code
data(!r,1)=@trim(mscisectorref(!r,1))
data(!r,2) = %idc
data(1,!c)= %ids


endif

next

next

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

Splitting Table Rows into Individual Objects

Postby EViews Gareth » Thu Mar 17, 2022 11:24 am

Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 8 guests