Page 1 of 1
Different ways to check for NA
Posted: Wed Aug 20, 2014 3:27 am
by Ecovi
What is the difference between @isna(a) and a=na in if statements? Which one would be better or faster? The result is the same.
Re: Different ways to check for NA
Posted: Wed Aug 20, 2014 5:43 am
by EViews Gareth
They're essentially the same.
Re: Different ways to check for NA
Posted: Wed Aug 20, 2014 7:44 am
by Ecovi
Thanks!
Re: Different ways to check for NA
Posted: Wed Aug 20, 2014 7:53 am
by EViews Glenn
The former is a bit easier to read when using expressions, as in the admittedly artificial example
versus
Re: Different ways to check for NA
Posted: Wed Aug 20, 2014 7:57 am
by EViews Gareth
And you can use @isna inside other functions