0

How can I rename multiple variables with the ending _pagesubmit to remove that suffix? For example, the variables:

timer_climate_t1_pagesubmit
timer_climat_open_t1_pagesubmit
timer_covid_intro_t2_pagesubmit

should be renamed to:

timer_climate_t1
timer_climat_open_t1
timer_covid_intro_t2

2 Answers 2

1
rename *_pagesubmit *

See help rename group for more info.

Sign up to request clarification or add additional context in comments.

Comments

0

You could use renvarlab which has a number of nice renaming features:

renvarlab timer_*_pagesubmit, postdrop(11)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.