Page 1 of 1
Convert alpha series to svector
Posted: Mon Sep 01, 2014 7:51 am
by ErikG
Hi,
Is there an easy way to convert an alpha series to an svector? That is, aside from using a loop with element by element assignment into a new svector?
As I understand it it is possible to convert a text object to an s vector, but if I would go through that detour I would have problems with blank spaces.
Regards,
/Erik.
Eviews 8 Standard edition july 29 build
Re: Convert alpha series to svector
Posted: Mon Sep 01, 2014 2:55 pm
by EViews Gareth
Re: Convert alpha series to svector
Posted: Tue Sep 02, 2014 12:02 am
by ErikG
It works, thanks!
(Ignore my last comment that I deleted, it was incorrect)
/Erik.
Re: Convert alpha series to svector
Posted: Tue Sep 02, 2014 4:31 am
by ErikG
How about the other way around - converting an svector to an alpha series? mtos doesn't seem to work well.
/Erik.
Re: Convert alpha series to svector
Posted: Tue Sep 02, 2014 8:02 am
by EViews Gareth
There isn't a way to do that yet.
Re: Convert alpha series to svector
Posted: Fri Sep 05, 2014 4:14 am
by ErikG
Hi again, I've got another question about converting alpha series and the like:
There are a number of handy functions for strings, like @wunion, @wintersect and so on. Are there any equivalent functions for alpha series? If not, I would like to convert my alpha series to a rather long string. Is there any convenient way of doing that besides looping over the elements in the alphaseries?
Re: Convert alpha series to svector
Posted: Fri Sep 05, 2014 8:27 am
by EViews Gareth
What would @wunion or @wintersect do on an alpha?
Re: Convert alpha series to svector
Posted: Mon Sep 08, 2014 12:20 am
by ErikG
Hi,
I guess the returned object would have to be a string or possibly an svector, and that string would be the union or intersection of the elements in the alpha. I can see why you wouldn't want to have these functions for alphas, but is there a simple way to go from an alpha to a string so that I can use them indirectly?
/Erik.
Re: Convert alpha series to svector
Posted: Mon Sep 08, 2014 8:10 am
by EViews Gareth
Only by looping through the elements one at a time and adding them to a string yourself.