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?
About confidential interval for standardized coefficentsWhen doing linear regression (i.e. regress), I can use the option “beta” to get standardised coeffic…
The value of Prob > chi2 for Hansen test of overid. restrictionsDear Scholars and Experts I would like to ask that what is the maximum value of Hansen test that c…
Problems with using "collapse" and the coefficient become changes from negative to positive sign. Vice versa.Dear Experts and Scholars I would like to ask that I estimated the GMM estimator, which the number…
Creating a loop with multiple operationsDear all, I have data on user ratings and am trying to see whether there is a downward trend at var…
Creating graphs with scalarsI have some problems creatin a graph with scalar variables, here is my code: set scheme cleanplots,…
Subscribe to:
Post Comments (Atom)
0 Response to Rename using regex?
Post a Comment