Delete certain object types

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

JhonnyCa
Posts: 6
Joined: Tue Feb 17, 2015 11:32 am

Delete certain object types

Postby JhonnyCa » Tue Feb 17, 2015 12:00 pm

Hello,
I want to delete all alpha objects (but not the series) from my workfile before structuring it into panel data. Since I have more than 5000 different objects (all series and alpha objects beginning with "_") in the workfile, it would be very inconvenient to do that manually. Unfortunately I could not find any options of the delete-function for this specific task. Thank you in advance for any suggestions!
Image

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Delete certain object types

Postby trubador » Tue Feb 17, 2015 1:13 pm

View/Select By Filter...

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Delete certain object types

Postby EViews Glenn » Tue Feb 17, 2015 1:59 pm

trubador suggestion is good for interactive deletion.

For command line deletion, the following two lines, put in a program file, should do the trick.

Code: Select all

%a = @wlookup("*", "alpha") delete {%a}

JhonnyCa
Posts: 6
Joined: Tue Feb 17, 2015 11:32 am

Re: Delete certain object types

Postby JhonnyCa » Wed Feb 18, 2015 3:45 am

Thank you very much, it worked perfectly fine!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest