Statalist


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

RE: st: data management - string function


From   "Elizabeth Allred" <[email protected]>
To   <[email protected]>
Subject   RE: st: data management - string function
Date   Mon, 05 Jan 2009 16:08:53 -0500

A link to the cartoon (or is that carteen? cartaan?)

http://books.google.com/books?id=UGGhM2XKE_0C&pg=PA169&lpg=PA169&dq=%22R.W.+Wood%22%26+carrot+%26+parrot&source=bl&ots=o6ARy2atXR&sig=JQqzOz_BrG6xzaKFQsFmO7VXB98&hl=en&sa=X&oi=book_result&resnum=5&ct=result

>>> On 1/5/2009 at 3:09 PM, in message
<031173627889364697C50B3B266CBB8A03F4E7D6@GEOGMAIL.geog.ad.dur.ac.uk>, "Nick
Cox" <[email protected]> wrote:
> Howard's typo here may confuse a few. On carrots, carets, carats, etc.
> see e.g. 
> 
> <http://www.wsu.edu/~brians/errors/carat.html> 
> 
> While I'm at it, let's recall the physicist R.W. Wood (fl.1900) 
> 
> The Parrot and the Carrot
> 
> The Parrot and the Carrot we may easily confound,
> They're very much alike in looks and similar in sound,
> We recognize the Parrot by his clear articulation,
> For Carrots are unable to engage in conversation.
> 
> The cartoon that goes with this poem is worth hunting down. 
> 
> Nick 
> [email protected] 
> 
> Howard Lempel
> 
> BW, carrot (^) tells Stata you are searching for characters at the
> beginning of a string only, so you probably want something to the effect
> of:
> 
> Gen var2 = regexr(var1,^("MR" | "MR." | "Mr" | . . .),)  
> 
> 
> *
> *   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/
*
*   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