iefieldkit
iefieldkit copied to clipboard
ieduplicates : error when two vars only differ in case
https://github.com/worldbank/iefieldkit/blob/eb2ee624ddd20a42ff8a1aca647cc7cf28d35f0c/src/ado_files/ieduplicates.ado#L250-L253
Error happens if these two conditions are satisfied:
- The dataset has two vars that will have the same name if both converted to lower case (examples
region
/REGION
,region
/Region
orrEgion
/reGion
) - Both are included in
ID_varname
,uniquevars()
orkeepvars()
OR one var is lower case (region
) not included in the command but the var is included inID_varname
,uniquevars()
orkeepvars()
.
For a reason I do not remember, the command change all variables in the report to lower case.
Two options to be investigated to solve this.
- Test if this is the case and provide user with a helpful error message
- See if the command can be modified so it can handle these cases without error.