Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Case-Sensitivity in Stata


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: Case-Sensitivity in Stata
Date   Tue, 27 May 2003 18:46:23 +0100

Alexander Quarshie
 
> I am trying to merge two files in Stata 8 based on a unique 
> identifier (ID). However some of the values or ID's are in 
> upper cases in one file, and lower cases in the other. 
> Stata seems to treat each of these as unique. 
> I wish therefore to convert all the ID's to one uniform 
> format ( either Upper or Lower case) in Stata before doing 
> the merge.
> How can l do this conversion in Stata?

The -upper()- and -lower()- functions can be found 
documented under string functions. 

There is a presumption here that the ids are not 
themselves case-sensitive. 

Nick 
[email protected] 
*
*   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