worldbank / iefieldkit

Stata commands designed for Impact Evaluations field work. These are tools that are used during/after a survey in the field for data quality monitoring.
MIT License
38 stars 18 forks source link

iecodebook: remove spaces from variable names #120

Closed luizaandrade closed 4 years ago

luizaandrade commented 4 years ago

Currently, iecodebook gives you an error saying "[name ] is not a valid variable name" if it includes spaces.

bbdaniels commented 4 years ago

This is true -- do you think they should automatically be cleaned up with trim? (This might result in duplication with unexpected effects as in #119 though). Perhaps checking for duplicates as well would be a good solution to both.

luizaandrade commented 4 years ago

Do you mean the order of the loaded data set would change if we used trimmed on the variable name?

bbdaniels commented 4 years ago

I don't think so. it should be fine. marked for next version