Statalist


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

Re: st: RE: string function "Sentence case"


From   Andrea Bennett <mac.stata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: string function "Sentence case"
Date   Wed, 4 Jun 2008 19:35:24 +0200

This is working, too. Many thanks!

On Jun 4, 2008, at 7:07 PM, Scott Merryman wrote:

regexr(<string>, word(<string>,1) ,proper(word(<string>,1)) )

Scott

On Wed, Jun 4, 2008 at 11:59 AM, Nick Cox <n.j.cox@durham.ac.uk> wrote:

You don't need one (much).

upper(substr(<string>,1,1)) + substr(<string>,2,.)

Andrea Bennett

Is there a string function to change a string to sentence case? E.g
"foreign labor integration" --> "Foreign labor integration"

*
*   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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index