Hello,
I am using EViews 7 and have a problem with finding the command for editing a cell.
I have an alpha object of 27 EU-countries and want to change "UK" to "GB". I did this manually by using "edit" but I am sure there is an easier way.
It would be great if someone could help me and tell me the command for that.
Thanks in advance, this forum has helped my several time, you are doing a great job!
Jana
Edit a cell by command
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Edit a cell by command
Set the sample to be the observations you're interested in changing, then assign the alpha object. It sounds as though in your case you could do this:
if "country" is the name of your alpha.
Another way would be to use the string manipulation functions:
Code: Select all
smpl if country = "UK"
country = "GB"
smpl @all
Another way would be to use the string manipulation functions:
Code: Select all
country = @replace(country, "UK", "GB")
Re: Edit a cell by command
I tried your second proposal and it worked perfectly.
Thanks a lot!!
Thanks a lot!!
Who is online
Users browsing this forum: No registered users and 1 guest
