Page 1 of 1
Matching contents of alpha
Posted: Tue Jan 17, 2012 1:40 pm
by javiersan
Hello,
I have two alpha objects and I want to test whether the elements of one are in the other. Is there any way of doing this?
Thanks,
Javier
Re: Matching contents of alpha
Posted: Tue Jan 17, 2012 2:12 pm
by EViews Gareth
The only way to do this is to create a string containing the elements of the alpha series (and you can only do that by creating a for loop that loops through the elements and adds them to the string list), and then use something like @wunique to get the list of elements in both. If you have many observations, this might become unworkable.
Re: Matching contents of alpha
Posted: Tue Jan 17, 2012 2:50 pm
by javiersan
Thanks Gareth, a loop will do.