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]
Re: st: Select the last 4 numbers out of 8...
From
Jorge Eduardo Pérez Pérez <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Select the last 4 numbers out of 8...
Date
Thu, 9 Jun 2011 10:59:49 -0400
Try the user written command -nsplit-
ssc install nsplit
_______________________
Jorge Eduardo Pérez Pérez
On Thu, Jun 9, 2011 at 10:43 AM, Ivy Shiue <[email protected]> wrote:
> Does anyone know how to make a commend to only choose the last 4 numbers out of 8... for example, when we have birthdate of 8 numbers (yyyymmdd) and I only want the last 4 indicating the month and date (mmdd), how can I get it? Then do I use the same commend to extract the last 2 numbers (dd)? What if I only want the last 3rd and 4th number (mm)?
>
> Thanks so much in advance! :-)
> Ivy
>
> *
> * 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/
>
*
* 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/