I would like to rename a set of vars if they end with odd numbers and are between 1 and 42. The code below is helpful but it captures only var names ending to odd numbers.
Thanks,
NM
foreach v of var * { if mod(real(substr("`v'",-1,1)), 2) == 1 drop `v' }
0 Response to Problem with renaming vars
Post a Comment