Statalist The Stata Listserver


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

Re: st: string varaiable decapitalize characters


From   Philipp Rehm <[email protected]>
To   [email protected]
Subject   Re: st: string varaiable decapitalize characters
Date   Thu, 21 Sep 2006 13:42:14 +0200

Assuming your variable is called "name":
replace name=lower(name)

HTH,
Philipp

Nikolaos A. Patsopoulos wrote:
Hi,

how can I change all capital letters to normal ones in a string variable?


example:

"John Doe" must be "john doe"

Thanks in advance,

Nikos


*
*   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