Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index