Hi all, I am a new user to STATA. I want to rename 12 different variables: Instead of coding 12 different lines such as below--is there a better way to do it? Thanks.
---
rename d_201801 d1
rename d_201802 d2
rename d_201801 d3
rename d_201801 d4
rename d_201806 d5
rename d_201823 d6
rename d_201824 d7
rename d_201801 d8
rename d_201901 d9
rename d_201901 d10
rename d_201901 d11
rename d_201926 d12
0 Response to Help with loop for rename function
Post a Comment