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]
st: RE: merge two datasets-variable str8 str10
From
Joe Canner <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: RE: merge two datasets-variable str8 str10
Date
Fri, 28 Mar 2014 14:49:54 +0000
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/