Bookmark and Share

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

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

Re: st: Using merge with a string id variable

From   Nick Cox <>
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.


On Wed, Aug 10, 2011 at 5:58 PM, Edith Felix <> 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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index