I'm currently facing the following problem:
I'm reading data from an html table. NAs in that table are encoded in two ways : either with blank or with "NaN".
When reading that table into EViews, EViews is interpreting the series containing NaN as alpha series.
I've tried to do :
Code: Select all
wfopen(type="html") %url colhead=2 namepos=first na="NaN" I've tried to a loop amid the imported series to transform the alphas to numeric with :
Code: Select all
group _g
for !i=1 to _g.@count
%name = _g.@seriesname(!i)
{%name}=@val({%name})
next
I've also tried
Code: Select all
group _g
for !i=1 to _g.@count
%name = _g.@seriesname(!i)
{%name}=@recode({%name}="NaN",na,{%name})
next
So how can I tell EViews that NAs can be either blanks or "NaN" ?
Or find a way to check if a series is alpha or not with a @isalpha kind of function ?
Thanks for your help.
Loulouviews
