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"
invalid variable nameHi! I am trying to reshape my data. id Co base ID3 103 0 0 103_6_6 104 0 1 104_0_0 104 0 0 104_1_1 …
reg i.id i.year,vce(cl id) vs. xtreg i.year,fe rDear all, We know "reg i.id i.year,vce(cl id)" is the same as "xtreg i.year,fe r",but why are the re…
Replace missing values smartlyHi all, I am writing since I have a potentially simple task which however I am not able to figure o…
Data for difference in differenceHello, I am currently doing my dissertation on the impact of minimum unit pricing on alcohol volume,…
Creating a large Dummy Variable tableGood afternoon, I am working with a dataset that looks at different funding structures for subsidiz…
Subscribe to:
Post Comments (Atom)
0 Response to replacing "X" character within a string variable with "9"
Post a Comment