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

Re: st: string_functions "Titlecase"?

From   Andrea Bennett <>
Subject   Re: st: string_functions "Titlecase"?
Date   Wed, 4 Jun 2008 18:28:11 +0200

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,


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"


On Wed, Jun 4, 2008 at 11:11 AM, Andrea Bennett <> wrote:


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,

*   For searches and help try:
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index