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

st: RE: Replace string


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Replace string
Date   Wed, 2 Mar 2005 18:58:35 -0000

Robin Newberry
 
> As an easy way to group accidents by year, the data has a field with 
> simply the year of the accident. Unfortunately, they've chosen to 
> enter 2 date years, rather than 4 date years. This presents 2 
> problems:
> 
> 1) 9999 is sometimes entered as shorthand for "date unknown"

replace year = "" if year == "9999"

Nick 
[email protected] 


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