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: replace a set of numbers with a second set of numbers
From
Tyler Frazier <[email protected]>
To
[email protected]
Subject
st: replace a set of numbers with a second set of numbers
Date
Thu, 22 Jul 2010 20:05:07 -0400
I want to replace a set of numbers (1 to 280) with another set of
numbers (201005050010 to ~201025050080)
the file has the time and distance between each of the 280 different
points (78,400 observations)
1 - 1
1 - 2
1 - 3
1 - 4
...
1 - 280
...
279 - 279
279 - 280
but the set of numbers was exported with a default setting and I need
to replace each number such that
objectid zone_id
1 = 201005050010
2 = 201005050020
3 = 201005050040
4 = 201005050030
5 = 201005050060
6 = 201005050050
7 = 201005050100
8 = 201005050110
9 = 201005050070
10 = 201005050130
...
279 = 201025050010
280 = 201025050080
can someone make a suggestion for me regrading this? Im having
difficulty figuring it out in Stata.
Thanks,
Ty
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/