Programming the renaming of multiple variables

For questions regarding programming in the EViews programming language.

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

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Programming the renaming of multiple variables

Postby miorinnovo » Wed Jan 16, 2019 8:39 am

Is it possible to import a list of variables in a particular order and then programming them to be renamed in a systematic way rather than have a long list of "rename x y". For example, if I have 100 variables and I want them to be renamed A1,A2...A10,B1,B2,...B10 etc.

Thanks

EViews Matt
EViews Developer
Posts: 562
Joined: Thu Apr 25, 2013 7:48 pm

Re: Programming the renaming of multiple variables

Postby EViews Matt » Wed Jan 16, 2019 10:17 am

Hello,

You can generate lists of EViews objects using @wlookup and the use various string manipulation functions to build your rename statements. It all depends on how complicated the renaming patterns are.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 16 guests