Hi there, how does one truncate a string variable such as a postcode in Stata? The variable comprises characters and numbers in this format e.g. XXX, XX, and I would like to truncate the variable to the first two characters. There are 1,400 observations. Much appreciated.
-
Login or Register
- Log in with
Comment