Alpha object, string manipulation

For questions regarding programming in the EViews programming language.

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

gwingard
Posts: 5
Joined: Thu Apr 15, 2010 8:04 am

Alpha object, string manipulation

Postby gwingard » Fri Apr 01, 2011 1:54 pm

Hello all,

I'm using Eviews 7 for modeling purposes and I've come across a problem I need some help with. I have an alpha object populated with a few million records of the form ( variable_geography_scenario ). What i'm trying to do is delimit each record into 3 separate strings. I've tried the @wdelimit command but get an error stating wdelim is not a genr or series expression function.

Code: Select all

for !x = 1 to 11619612 alpha msa_series = @wdelim(mnemonic(!x), "_", " ") next

I'd like to delimit the existing alpha object, named "mnemonic", creating a new alpha series "msa_series" with the delimited string. Then I'd like to use the @word function to populate 3 new alpha series.
I'm clearly missing something fundamental to the behavior of alpha objects.
All of this just to unstack some data :)

I appreciate any help.

Thank you.

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

Re: Alpha object, string manipulation

Postby EViews Gareth » Fri Apr 01, 2011 1:59 pm

Can't you just use @replace to replace the "_" with " "?. Thus something like:

Code: Select all

alpha msa_series = @replace(mnemonic, "_", " ")


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests