Hi,
I have a string variable that some of its values consist of a combination of numbers and "X" (e.g., "01234X). The "X" character appears at the end. How can I replace the "X" with "9"(e.g., 01234X--> 012349).
Thanks
Nader
Related Posts with replacing "X" character within a string variable with "9"
Escape character in shell commandI have a long command in a shell escape that includes semicolons. If use -#delimit ;- to allow for a…
How to include conditions in program (.ado file)Hi, I am very new to writing programs in Stata. My current project is to write an ado-file to get t…
Problem with graph export using globalsHi, I am using globals to store my file paths - all the globals are stored in a master dofile that …
Running a function for a subset of observationsHello colleagues, I have a long shaped dataset of 200 countries. I would like to run functions, for…
Difference-in-difference regression interpretationGood afternoon, I know there have been previous posts regarding this topic, however I first wanted …
Subscribe to:
Post Comments (Atom)
0 Response to replacing "X" character within a string variable with "9"
Post a Comment