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?
New to SSC mbitobit - Bivariate Tobit modelDear all, Thanks to Professor Baum, A new command is available in SSC. -mbitobit-. This command re-a…
Computing IPW estimator by handHello everyone, For my project, I try to know if a certain type of policy ("pol", which is a dummy)…
hausman test problemDear all, I am working with panel data and when I use the command: hausman fe re, force, I get the…
Bar Chart PercentilesHello, I plotted a bar graph of the education level agains the mean of the average pay. Because of …
Combining a newly constructed dummy variables to one categorical variable for analysis/refcatDear Statalist, I have currently created four variables about family status: 1) Parents living toge…
Subscribe to:
Post Comments (Atom)
0 Response to Rename using regex?
Post a Comment