Hello
I have data that is set out with a first row being numbers that I would like as variable names. Since I cannot name the variables with these names (because they are digits), I would like to name my variables with the letter K in front. eg the first row appears 010 011 012 ... 200 and I would like to name the variables which fill each of their columns K010 K011 K012... K200.
This is probably a simple thing to do but I am struggling as a new STATA user- any help would be greatly appreciated!
Thanks
Related Posts with Renaming variables with modified versions of label names
Retrieve the "at legend" on top of margins tableHi, I'm using margins to calculate about 3600 predicted values in a loop, using the option at() wit…
Loop for generating new variablesHi all, I am a new user to STATA--can you help me loop the generate new variable command? Is there a…
Append one variable after another in the same datasetHello, This is part of my dataset. What I want to do is to append contri_dia2 contri_dia3 contri_d…
Looping replace functionHello all, I am new to STATA and trying to loop replace function. Is there a way to improve my code?…
Sorting CIs in a ciplot commandHi, I want to plot the CIs for a proportion by country. It would be useful if I could display the C…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming variables with modified versions of label names
Post a Comment