Is there any command to delete any series that contains only NAs?
The excel files that I imported sometimes contain a series of all NAs. For example, there is a series of GDP in country A, whose GDP is not available in fact. In this case, my variable A_GDP contains NAs for all data periods. That is, @obs(A_GDP) = 0 in spite of the existence of A_GDP in the work file.
I'm wondering if I could write a loop all variable names in the current or "default" page, and delete the variable with @obs = 0. Or, I'd like to write a command statement like:
Code: Select all
delete * if @obs(*) = 0Does anybody have a suggestion?
I will really appreciate any comments/suggestions.
I uploaded my work file. (Annual.wf1)
For example, ANT_Y only contains NAs.
I really appreciate all the helps that I got from this forum.
Thank you very mcuh,
Futoshi
