Hi there,
Long time reader, first time poster.
I am currently trying to rename a large list of weight variables to better fit the syntax of my dataset
Currently the variables are named wle"t"_"z" with "t" and "z" being combinations of e/p. I wish to rename the variables so that e=5, f=6 ... p=16.
I also have variables that are named wle"t""z" that I wish to rename in a similar fashion.
I would usually just just a loop in this situation but the two letters and the underscore contained within some of the variable names is confusing me.
Any advice on how to tackle this would be much appreciated.
Tim
Long time reader, first time poster.
I am currently trying to rename a large list of weight variables to better fit the syntax of my dataset
Currently the variables are named wle"t"_"z" with "t" and "z" being combinations of e/p. I wish to rename the variables so that e=5, f=6 ... p=16.
I also have variables that are named wle"t""z" that I wish to rename in a similar fashion.
I would usually just just a loop in this situation but the two letters and the underscore contained within some of the variable names is confusing me.
Any advice on how to tackle this would be much appreciated.
Tim
Comment