|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: string_functions "Titlecase"?
I am sorry! I thought the following is called "titlecase": "foreign
labor integration" --> "Foreign labor integration". Whatever this is
called, I could not find a string function for this. Is there a
solution?
Many thanks and sorry for the confusion,
Andrea
On Jun 4, 2008, at 6:20 PM, Scott Merryman wrote:
See -help f_proper-
proper(s) returns a string with the first letter capitalized and
any other letters
immediately following characters that are not letters
capitalized, and all
other letters converted to lowercase.
proper("mR. joHn a. sMitH") = "Mr. John A. Smith"
proper("jack o'reilly") = "Jack O'Reilly"
proper("2-cent's worth") = "2-Cent'S Worth"
Scott
On Wed, Jun 4, 2008 at 11:11 AM, Andrea Bennett
<[email protected]> wrote:
Hi!
I've successfully automated the process of renaming a variable's
label.
Unfortunately, it seems there is no string functions for "titlecase"
(starting with a capital letter, then apply lowercase). Is there a
solution
to this?
Many thanks for your considerations,
Andrea
*
* 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/