Thursday, April 2, 2020

Drop variable if varlabel contains certain expression

Hey Statalisters,

I am trying to drop all variables that have the expression "Domestic Currency" in their variable label.

I guess I have to combine foreach and strpos and local macros - but I can't figure out how.

Thank you so much!
Johannes

No comments:

Post a Comment