Hi everyone,
How can I remove the first character(s) of values if they are zero? For example, I would like to convert 0003 to 3 and 019 to 19. Obviously, my variable of interest is a string var.
Thanks,
Nader
Related Posts with removing the first character of a string variable if it is zero
Urgent: Multilevel moderated mediationI need to estimate a multilevel moderated mediation model, but I can't find the right code for it. I…
Concordance, sensitivity, specificityHello, I have a very small data set with two diagnostic test data. One is an old test and gold stan…
Meta proportionHi to everybody... after running the "metaprop" command if it is possible to write instead of "ES" "…
Regression of a few selected observationsI have a set of data but would only require to use of a few observations from the entire dataset. I …
LoopHello fellow Stata users, I have a question regarding the forvalues loop, this is the first time I …
Subscribe to:
Post Comments (Atom)
0 Response to removing the first character of a string variable if it is zero
Post a Comment