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!
0 Response to Rename from last part of label that includes "."
Post a Comment