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

st: Re: Date: Sun, 19 Oct 2003 14:31:00 -0400


From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: Re: Date: Sun, 19 Oct 2003 14:31:00 -0400
Date   Sun, 19 Oct 2003 19:44:30 +0100

At 14:31 19/10/03 -0400, Erica Seiguer wrote:
I have a variable where the identifier is listed as follows

111-11-11-111

I want to remove the dashes so the variable will just be a string of
numbers.

If anybody has any suggestions I would greatly appreciate it.
Use the -subinstr- function. See help for string functions under -strfun-.

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
  or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
*   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