Statalist


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

Re: st: Cut command


From   "Joao Ricardo F. Lima" <[email protected]>
To   [email protected]
Subject   Re: st: Cut command
Date   Mon, 17 Nov 2008 09:55:59 -0300

Dear Katia,

I think that append can do this:

* begin example
clear
webuse even
drop even
list
save even, replace
webuse odd
drop odd
list
append using even
list

* end example

Hope this helps,

Joao Lima

2008/11/17 Katia Bobulova <[email protected]>:
> Dear all,
>
> I used the cut command to divide my time in 5-minute intervals.
>
> Since there were too many intervals, I created  two new variables.
> Newtime for the intervals of time since 14.30 and newtime2 for the rest.
>
> Now I would like to have just one variable with the two newtime
> For example:
>
> Newtime                 mewtime2
> 14:00:00                 14:35:00
> 14:05:00                 14:40:00
> 14:10:00                       .
> 14:15:00                       .
> 14:20:00
> 14:25:00
> 14:30:00
>
> now I would like to create a new variable with both times, in this way:
>
> newtime3
> 14:00:00
> 14:05:00
> 14:10:00
> 14:15:00
> 14:20:00
> 14:25:00
> 14:30:00
> 14:35:00
> 14:40:00
>
> How could I do this?
>
> Thanks
> Katia
> *
> *   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/
>



-- 
-------------------------------
Joao Ricardo Lima
Professor
UFPB-CCA-DCFS
+553138923914
-------------------------------
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index