Delete series that are NOT in a group

For questions regarding programming in the EViews programming language.

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

tho_mi
Posts: 61
Joined: Sat May 12, 2012 2:41 am

Delete series that are NOT in a group

Postby tho_mi » Fri Jun 08, 2012 10:41 am

Hey,

is there a possibility to delete the series which are not part of a group (in my source there are variables i don't need and i don't want to delete them from the source)?

Thanks in advance :)

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

Re: Delete series that are NOT in a group

Postby EViews Gareth » Fri Jun 08, 2012 1:00 pm

Code: Select all

%allseries = @wlookup("*", "series") %groupseries = mygroup.@members %nongroupseries = @wnotin(%allseries, %groupseries) delete {%nongroupseries}

tho_mi
Posts: 61
Joined: Sat May 12, 2012 2:41 am

Re: Delete series that are NOT in a group

Postby tho_mi » Sat Jun 09, 2012 5:11 am

Code: Select all

%allseries = @wlookup("*", "series") %groupseries = mygroup.@members %nongroupseries = @wnotin(%allseries, %groupseries) delete {%nongroupseries}
Thanks :)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests