Hello! I'm trying to rename variables from the label, but this label includes dots (".")
Example Label: "aaa.1.bbb.actual_label"
Hence, the following doesn't work:
foreach v of varlist v655 v656 ... v688 v689 {
local x : variable label `v'
rename `v' `x'
}
I've used ways to read from a particular position in a string before but I can't seem to make it work now.
Would be very grateful for help!
Related Posts with Rename from last part of label that includes "."
Help! Standard deviation interpret?How much would Expenditure have to increase, holding Percent constant, to increase SAT by one standa…
Stata Graph Not DisplayingWhen I run my command, the graph viewer appears but not the graph itself. It only appears after I cl…
Histogram with dummiesHi I want to do a Histogram, which shows how many percentage of certain people earn less than the mi…
Coefplot matrix with transform option when the matrix contains missing valuesHello everyone, I am always being helped a lot from past threads, but this time I need to start a n…
It seems that we cannot use tuples in tuples?I try to use tuples in the loop of tuples, however, it got some error: invalid 'y2' Does anyone know…
Subscribe to:
Post Comments (Atom)
0 Response to Rename from last part of label that includes "."
Post a Comment