Hi All,
I'm using panel data pulled from a website and a curious anomaly has stalled my progress.
My ID variable occasionally appears to leave a trailing blank space. For example, in one time period the ID will be listed as "texas", but then it will appear to be listed as "texas ".
I say "appears", because Stata does not seem to recognize this blank space as a blank space.
Simple methods of removing blank spaces have not worked.
Searching for blank spaces turns up without finding any
It DOES recognize the character (using a 'length' function does yields a value of 6 instead of 5 in the "texas " example)
Has anyone ever had a similar problem? What can be done?
I'm using panel data pulled from a website and a curious anomaly has stalled my progress.
My ID variable occasionally appears to leave a trailing blank space. For example, in one time period the ID will be listed as "texas", but then it will appear to be listed as "texas ".
I say "appears", because Stata does not seem to recognize this blank space as a blank space.
Simple methods of removing blank spaces have not worked.
Searching for blank spaces turns up without finding any
It DOES recognize the character (using a 'length' function does yields a value of 6 instead of 5 in the "texas " example)
Has anyone ever had a similar problem? What can be done?
Comment