Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Need help with string observations


From   Michael Stewart <michaelstewartresearch@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Need help with string observations
Date   Tue, 26 Feb 2013 13:08:17 -0500

Hi,

Can you please help me with  String function
I have a list of patients and unfortunately some pts have their names
recorded  in various formats like  James Edward ; James Edward H;
James Edward J   etc
Is it possible to write a code where the funcition  removes the last
alphabet for the string if it is listed separately like

 James Edward H--> James Edward


-- 
Thank you ,
Yours Sincerely,
Mike.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index