Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Expanding date ranges that are stored as strings

From   Anthony Hong <>
Subject   st: Expanding date ranges that are stored as strings
Date   Fri, 28 Oct 2011 00:30:22 -0400

Hi Statalist!

I'm having a bit of a problem.  I'm using the UNU-WIDER dataset which
reports countries and various years.  The problem is that while some
years are recorded as say 1999, 2000, there are some that are recorded
as ranges, for example 1993- 2001.

I would like to take these date ranges and generate individual
observations for each year within the range.  I am unsure how I would
identify parts of the string in order to identify how many
observations to fill in.

Any help would be amazing, thank you Statalist!
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index