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!
0 Response to strtrim not producing desired results
Post a Comment