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

Re: st: string_functions "Titlecase"?

From   "Scott Merryman" <>
Subject   Re: st: string_functions "Titlecase"?
Date   Wed, 4 Jun 2008 11:20:26 -0500

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

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