Hello Mr Mrs Help
I have a variable called bvid. It is in a form of either abxxxxxxxx or xxxxxxxxxx (x represents numbers).
I would like to delete the first two letters if the variable is in a form of abxxxxxxx, and I would like to keep those bvid which are already in the form of xxxxxx intact. The two letters are not necessarily "ab", it can be other letters.
Thanks
Related Posts with How to delete the first two letters from a string variable?
Unbalanced datasetHello Stata users, I started using Stata recently and at the moment I find myself in a dilemma. My d…
import delimited and loopDear Statalisters, i am trying to import 40 csv files into one dta file using import delimted and fo…
Marginal Effects after GsemHello everyone I am running a multinomial logit model using gsem I tried finding marginal effect of …
Indicator variable based on change in string variableHi, I'm dealing with (unbalanced) panel data. Code: * Example generated by -dataex-. To install: s…
Modifying a dataset to facilitate mergingHello, I am working with NHANES data and have been merging datasets together using a 1:1 merge with…
Subscribe to:
Post Comments (Atom)
0 Response to How to delete the first two letters from a string variable?
Post a Comment