Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: eliminating hyphens in a data cell


From   Philipp Rehm <[email protected]>
To   [email protected]
Subject   Re: st: eliminating hyphens in a data cell
Date   Tue, 15 May 2007 22:51:10 +0200

destring FEIN, ignore(-) replace


Ms. Marilyn Ibarra wrote:
I need to merge two data files by the variable FEIN (federal employer identification number).
In one file the FEINS are all numbers (for example: 061266276).
In the other file the FEINS have hyphens after the first two digits (for example: 06-1266276).
Does anyone know how I can get them to look the same in both files so I can do a merge by the FEIN variable?

Thank you,
Marilyn. *
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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