[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: how to keep first four figures of a variable
I would like to make a change in a variable.
A new variable keeps only first four figures of ten-digit variable.
original -> new
1980000123 -> 1980
1996123456 -> 1996
How do I generate such variable using Stata?
Thank you in advance.
FUKUGAWA Nobuya, Ph.D.
See my works at www.ssrn.com
* For searches and help try: