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: RE: merge two datasets-variable str8 str10


From   R Zhang <[email protected]>
To   [email protected]
Subject   Re: st: RE: merge two datasets-variable str8 str10
Date   Fri, 28 Mar 2014 19:07:37 -0400

Thank you, Joe!

On Fri, Mar 28, 2014 at 10:49 AM, Joe Canner <[email protected]> wrote:
> Rochelle,
>
> Try it and see!
>
> Stata will adust the string length in the merged data set to accommodate the larger strings, so there should be no problem.
>
> The only time this issue comes up is if one data set has a variable as numeric and the other data set has the corresponding variable as string.
>
> Regards,
> Joe Canner
> Johns Hopkins University School of Medicine
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of R Zhang
> Sent: Friday, March 28, 2014 10:44 AM
> To: [email protected]
> Subject: st: merge two datasets-variable str8 str10
>
> Dear Statalisters,
>
> My two datasets both have cusip variable. Its type is str8 in one data
> and  str10 in the other. my question is: do I need to change to a
> common type before merging ?
>
> thanks,
>
> Rochelle
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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