Is it possible to rename a variable using regex?
Let's say I have a variable:
g wth_t1_xxx = .
Is it possible to rename this variable using a regular expression so that it would be wth_xxx_t1? I'm looking for a pattern to capture the content between the underscores and move to the end, while taking the content at the end and move it to the middle.
Related Posts with Rename using regex?
an error occurred when bootstrap executed savemarginsHi, Using the code below, I have been able to obtain predicted probability at age=0 and SRH_B=0. Als…
Update to -robreg- available from SSCThanks to Kit Baum, an update to the -robreg- package is available from SSC. To install the update, …
Update to -moremata- available from SSCThanks to Kit Baum, an update to the -moremata- package is available from SSC. To install the update…
Rolling Regression to Calculate Abnormal ReturnsHi there, I used the rolling regression with window 12 months to calculate expected Beta and then I …
Surviving Firms in the SampleHi, I require some help with identifying the surviving firms that have survived completely over some…
Subscribe to:
Post Comments (Atom)
0 Response to Rename using regex?
Post a Comment