Hello,
I am aware that I can change those labels manually, but I have tens of data sets and I would like to have it rather programmed. I have a number of country codes (i.e. US, EZ, JP) but I want to convert them into their full names in the spool as well as to make some other changes. Is there a way to do so? I tried to look up in this website but could not find any case like this. Thanks in advance.
Is it possible to change labels of spool with coding?
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Is it possible to change labels of spool with coding?
- Attachments
-
- For example, I want to change the label from CAIHAT_JP into Japan CAI.
- JP.PNG (22.61 KiB) Viewed 3767 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Is it possible to change labels of spool with coding?
You have to change the label in the graph before adding it to a spool.
I find the easiest way to do that is to modify the display names of the underlying series before making the graph.
I find the easiest way to do that is to modify the display names of the underlying series before making the graph.
Re: Is it possible to change labels of spool with coding?
Thanks for the fast response. I am pretty new to EViews, and I searched through the forum to find out that the commands to rename series are:
%dispname = myseries.@displayname
%myname = name_of_series.@attr("originalname")
rename {series name} {display name}
But I run into an error every time I try. For example, I wrote %Japan CAI = caihat_jp.@Japan CAI, because I wan to change caihat_jp into Japan CAI, but the program says %Japan CAI is not defined or illegal. Could you just write one code for me (series name = caihat_jp, display name=Japan CAI) so that I can replicate that code? Thank you.
%dispname = myseries.@displayname
%myname = name_of_series.@attr("originalname")
rename {series name} {display name}
But I run into an error every time I try. For example, I wrote %Japan CAI = caihat_jp.@Japan CAI, because I wan to change caihat_jp into Japan CAI, but the program says %Japan CAI is not defined or illegal. Could you just write one code for me (series name = caihat_jp, display name=Japan CAI) so that I can replicate that code? Thank you.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Is it possible to change labels of spool with coding?
You set a displayname with:
Code: Select all
nameofseries.displayname the display name you want to use
Re: Is it possible to change labels of spool with coding?
Many thanks! (it works)
Who is online
Users browsing this forum: No registered users and 2 guests
