Delete rows with condition

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

jnkfoune
Posts: 14
Joined: Mon Aug 13, 2012 12:44 am

Delete rows with condition

Postby jnkfoune » Tue Aug 14, 2012 6:47 am

I would need to delete certain rows depending on the value of one column, I don't even know if it's possible with eviews

I mean I would need something like :
For each rows
if dayweek=1 or dayweek=7 then delete row

I am very new with eviews and have no idea of how to do this

thank you for your help

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Delete rows with condition

Postby startz » Tue Aug 14, 2012 6:54 am

I would need to delete certain rows depending on the value of one column, I don't even know if it's possible with eviews

I mean I would need something like :
For each rows
if dayweek=1 or dayweek=7 then delete row

I am very new with eviews and have no idea of how to do this

thank you for your help
You probably want to use the smpl if command

Code: Select all

smpl if not (dayweek=1 or dayweek=7)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests