Hello, specialists, I encounter a weird problem when trying to removing spaces in string variables using subinstr function. This approach worked resonablely well previously w.r.t some variables imported from several .xls file. However, it cannot fully remove the spaces in some recent cases. Here I upload the raw dataset (land_granting_y2008) and my do.file (importing_mulsheets_test.do).So I 'll highly appreciate it if someone can check it for me to see where the problem arise. The main problem is that after some procedure like replace area=subinstr(area," ","",.) , there's still a space after decimal point and I cannot further remove them. I guess there may be some invisible charcter or something like suggested by previous FAQ answers however I don't quite understand it.
-
Login or Register
- Log in with
Comment