Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: help cleaning string variable


From   Mario Macis <[email protected]>
To   [email protected]
Subject   st: help cleaning string variable
Date   Mon, 27 Feb 2006 15:43:50 -0600

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:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index