Hello,
This is my first post as a Stata novice. I hope this post is not redundant.
I would like to change the labels of many variables at once. Specifically, I am looking to remove the identical prefix all the labels.
The analogue (for variable names) to what I am trying to do is renpfix.
Naturally, I have been looking to use a loop but I can only add "prefix"--not remove the existing prefix.
I would greatly appreciate any hint as to how to achieve this goal.
Thank you in advance.
This is my first post as a Stata novice. I hope this post is not redundant.
I would like to change the labels of many variables at once. Specifically, I am looking to remove the identical prefix all the labels.
The analogue (for variable names) to what I am trying to do is renpfix.
Naturally, I have been looking to use a loop but I can only add "prefix"--not remove the existing prefix.
Code:
foreach v of var * { local new : var label `v' label var `v' "prefix: `new" }
Thank you in advance.
Comment