Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re:

Subject   st: Re:
Date   Wed, 28 Sep 2005 09:25:05 -0700 (PDT)

one suggestion:  the variables need to be consistent in terms of
characater vs. numeric.  i suggest you make both variables numeric; you
can change the character one to numeric via -destring- or the string
function -real- (see appropriate help files).  of course, if you have
leading zeros in your character variable, you may need to do some
additional manipulation.  following this, you can merge via -merge-. 
again, see the help documentation, accessed via typing -help merge- in the
command window (w/out the dashes, of course).
hope this helps,

> Hello,
> I have a problem with merging two seperate files by their ID. My problem
> is
> that the one set of ID is in a numeric format and the other is in a
> character format. How do I go about merging these files?
> thank you
> Jeff
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index