deleting rows containing NA's from a vector
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Posts: 37
- Joined: Thu Aug 28, 2014 8:08 am
deleting rows containing NA's from a vector
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?
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: deleting rows containing NA's from a vector
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).
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")))
Who is online
Users browsing this forum: No registered users and 32 guests