Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: deleting spaces in a string file


From   Richard Goldstein <[email protected]>
To   [email protected]
Subject   Re: st: deleting spaces in a string file
Date   Mon, 22 Jun 2009 14:31:35 -0400


use the trim function; type -help trim- to learn about it

Sharooon wrote:
I have a string file with entries such as:

" davis"
"davis"
"davis "
" davis "

which stata is recognizing as different values, what I'd like to do is trim the spaces and have them all appear as
"davis"

How can I do that?
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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