-lower()- and -upper()- are functions, not commands. Dopey example:
sysuse auto
gen lmake = lower(make)
gen umake = upper(make)
edit *make
Start with -help functions-.
Nick
On Thu, Nov 1, 2012 at 11:30 AM, Kathleen Oberst
<Kathleen.Oberst@hc.msu.edu> wrote:
> I have a variable (ex. City name) and I'm trying to clean it up. I have the same city entered in as all lowercase, first letter capitalized or all upper case. Is there a way to force them all into upper or lower case? I've tried the "lower" command but it was not recognized. I'm using version 11.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/