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: merge problem
From
Anders Alexandersson <[email protected]>
To
[email protected]
Subject
Re: st: merge problem
Date
Fri, 21 Sep 2012 09:31:11 -0400
Make the key variable "numven" numeric in both files, or string in
both files, or (probably worse) specify -merge ..., force-.
Anders Alexandersson
[email protected]
On Fri, Sep 21, 2012 at 9:25 AM, Nick Cox <[email protected]> wrote:
> The display formats are immaterial here; the difference is presumably
> in variable or storage type.
>
> Nick
>
> On Fri, Sep 21, 2012 at 2:22 PM, Jerome Fauconnier
> <[email protected]> wrote:
>
>> I have just understood : my old variable "numven" exists in the two files, but in two different formats.
>> So, it cannot be merged !
>> Thank you
>
> Le 21 sept. 2012 à 15:08, Jerome Fauconnier a écrit :
>
>>> I am using Stata 12.
>>> I have two files that I want to merge with a new variable "numhosp" which I have just created from a existing variable "numven".
>>> When I try to merge the two files with the following command :
>>> "merge 1:1 numhosp using lamda2011"
>>> I have got the following error message :
>>> "numven is double in using data"
>>>
>>> I don't use "numven" in the merge command. Why is it taken in account?
>
> *
> * 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/
*
* 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/