@wreplace(%eq,"* *", "*")

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

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

@wreplace(%eq,"* *", "*")

Postby tvonbrasch » Tue Nov 24, 2015 5:12 am

Hi

I have a number of equations/strings with the following format: BPAV84 = w84 * * 0.377427 * PU84 * * 0.00832 * pM84 * * 0.614253

I want to make a code that replaces the * * with one * only. I tried:
%eq="BPAV84 = w84 * * 0.377427 * PU84 * * 0.00832 * pM84 * * 0.614253"
string eq2=@wreplace(%eq,"* *", "*")

but it does not work, probably because * is a wild card operator...?

Can you please help me?
Thomas

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: @wreplace(%eq,"* *", "*")

Postby EViews Gareth » Tue Nov 24, 2015 8:58 am

Use @replace, not @wreplace


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests