I have appended multiple files into a single sSata dataset. It has now 335
variable names. Some variable names have casing issues like almirah
and ALMIRAH
storing the same information from different datasets.
I am replacing these variables like this one by one:
count if mi(almirah)
local first=r(N)
count if mi(ALMIRAH)
local sec=r(N)
if first<sec {
replace almirah=ALMIRAH if mi(almirah)
}
else {
}
How do I program this for all variables which are the same variable in essence but have upper and lower case issues like this?