deleting rows containing NA's from a vector
Posted: Thu Feb 22, 2018 8:29 am
by EviewsUser1
I have a vector that contains NA's. I would like to construct a vector that contains only the rows of the original vector for which there are values. Is there a simple command for that?
Re: deleting rows containing NA's from a vector
Posted: Fri Feb 23, 2018 10:38 am
by EViews Matt
Hello,
It's not as simple as a single function call, but the following returns a vector with the NA's removed (replacing "v" with the name of your vector).
Code: Select all
v.@droprow(@emult(@eneq(v, v), @ranks(@ones(@rows(v)), "a", "i")))