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, **statalist.org** is already up and running.

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

From |
Tyler Frazier <tyfrazier@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

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/

**Follow-Ups**:**Re: st: replace a set of numbers with a second set of numbers***From:*Tirthankar Chakravarty <tirthankar.chakravarty@gmail.com>

- Prev by Date:
**Re: st: getting realistic fitted values from a regression** - Next by Date:
**Re: st: replace a set of numbers with a second set of numbers** - Previous by thread:
**st: chi2 goodness-of-fit test** - Next by thread:
**Re: st: replace a set of numbers with a second set of numbers** - Index(es):