Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Using merge with a string id variable


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Using merge with a string id variable
Date   Wed, 10 Aug 2011 18:20:35 +0100

Yes. String identifiers as such are not problematic, but note that
matches must be exact as with numeric identifiers. Watch out for
leading and trailing spaces, inconsistencies of case and other
spelling differences.

Note that the difference between numeric and string in Stata is one of
datatype, not format.

Nick

On Wed, Aug 10, 2011 at 5:58 PM, Edith Felix <edithgfelix@gmail.com> wrote:

> I want to merge several datasets but their id variable is a string
> variable.  Can I successfully merge the datasets with the variable
> still in string format?

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index