Monday, February 27, 2006

st: help cleaning string variable

Dear statalist users, I need to clean a string variable containing the names of a large number of firms (over 30,000). In many cases these names contain extra characters that I would like to eliminate, such as % or " or ^. These characters always come at the beginning of the name. I know that Stata has a command (trim) that eliminates leading and trailing blank spaces from string variables. Is there a similar command to eliminate leading "undesired" characters? Thank you so much for your help. Best, Mario

-- Mario Macis PhD Candidate Department of Economics University of Chicago * * For searches and help try: * * *


Links to this post:

Create a Link

<< Home

This page is powered by Blogger. Isn't yours?