Page 1 of 1

Get unique strings in a sVector

Posted: Wed Feb 24, 2016 8:17 am
by makas12
Hello - I am using Eviews 8.1. I have a sVector allSeries and I want to be able to pull unique strings and store it in an another sVector. I wrote this:

Code: Select all

string comboStr = @wjoin(allSeries) string uniqueList = @wunique(comboStr) svector uniqueSVector = @wsplit(uniqueList)
However, I get this error "@wjoin is illegal or reserved name in "STRING COMBOSTR = @WJOIN(ALLSERIES".

Is @wjoin not supported in 8.1? Any ideas other than looping through the sVector to do this? Thanks,

Re: Get unique strings in a sVector

Posted: Wed Feb 24, 2016 9:47 am
by EViews Gareth
In EV8 you'll have to loop through. Or upgrade to EV9 :D