Statalist


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

Re: st: String Function


From   "Sergiy Radyakin" <[email protected]>
To   [email protected]
Subject   Re: st: String Function
Date   Tue, 10 Jun 2008 11:57:27 -0400

see help proper

On 6/10/08, Rijo John <[email protected]> wrote:
> Hi Statalist,
>
> Is there a way to change observations of a string variable into words
> with first letter uppercase and the remaining letters lower case.?
>
> Example; if I have the following observations in my string Var1 can I
> transform it to Var2 as given below.
>
> Var1
> ------
> world bank
> world health organization
> asian development bank
> ..........
>
> var2
> ---------
> World Bank
> World Health Organization
> Asian Development Bank
> ...........
>
> Some of the observations in in my var1 also has hyphens in it. (eg:
> world-bank) I want that to be changed to World Bank too.
>
> Thanks in advance.
>
> Rijo.
> *
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index