Hi Stata Users,
I am using strtrim command in Stata 15. The goal is to remove blank spaces at the beginning and end of a string character.
An example of the data is below
and the command am is
Please let me know what am doing wrong or a different way to approach the same results.
Thanks in advance!
I am using strtrim command in Stata 15. The goal is to remove blank spaces at the beginning and end of a string character.
An example of the data is below
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str54 code "50800000-3 " " 33169000-2" " 66514100-7" " 66514100-7" " 66514100-7" " 66514100-7" " 50410000-2" " 39710000-2" "03200000-3 " end
Code:
replace code = strtrim(code)
Thanks in advance!
Comment