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: merge problem


From   Anders Alexandersson <andersalex@gmail.com>
To   statalist@hsphsun2.harvard.edu
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
andersalex@gmail.com

On Fri, Sep 21, 2012 at 9:25 AM, Nick Cox <njcoxstata@gmail.com> 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
> <jeromefauconnier@gmail.com> 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/


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