Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: removing leading blanks


From   Abhimanyu Arora <abhimanyu.arora1987@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: removing leading blanks
Date   Sat, 31 Dec 2011 17:24:45 +0530

Dear statalist
All values of a string variable, var1, have 4 blank spaces in the beginning.
However, when I type in the command
-replace var1=ltrim(var1)- ,
 the output displays "0 real changes made" (and needless to say,
things remain as they were to start with)
Would be really great if this puzzling issue is sorted out.
Many thanks and best wishes
Abhimanyu
*
*   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–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index