Hello,
I am trying to rename variables in reverse order. I am running Stata 15.1
I appreciate everyone's help and patience as I work with Stata.
Is there a way to make this count down, from 18 to 1, instead of from 1 to 18?
I've ran this so far and it adds from 1 to 18:
import delimited using C:\Users\Mike\Desktop\Stata\Demographics\1.csv, clear
rename v1 school
rename v2 state
rename (v3-v20) ptd=
rename ptdv* ptd*
rename ptd# ptd#, renumber(1)
Thank you.
I am trying to rename variables in reverse order. I am running Stata 15.1
I appreciate everyone's help and patience as I work with Stata.
Is there a way to make this count down, from 18 to 1, instead of from 1 to 18?
I've ran this so far and it adds from 1 to 18:
import delimited using C:\Users\Mike\Desktop\Stata\Demographics\1.csv, clear
rename v1 school
rename v2 state
rename (v3-v20) ptd=
rename ptdv* ptd*
rename ptd# ptd#, renumber(1)
Thank you.
Comment