Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option -latest- breaks when indicator names are too long #33

Open
dianagold opened this issue Feb 27, 2020 · 0 comments
Open

Option -latest- breaks when indicator names are too long #33

dianagold opened this issue Feb 27, 2020 · 0 comments

Comments

@dianagold
Copy link

The option latest breaks for indicators with long names (the original variable name is shortened, but the filter that keeps only the latest value of that variable refers to its full name). For example:

wbopendata, indicator("UIS.AFR.SCHCENRESPR.1.PU") long latest clear

Generates a warning :

ATTENTION: Original variable name was above 20 characters. WBOPENDATA shorten it to comply with Stata specifications. Variable label preserved.

And the variable becomes uis_afr_schcenrespr_ but the drop is on uis_afr_schcenrespr_1_pu , so the error:

variable uis_afr_schcenrespr_1_pu not found
r(111);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant