Re: [R] Zoo series to a date time stamp that is regular

From: stephen sefick <ssefick_at_gmail.com>
Date: Mon, 28 Jun 2010 17:47:40 -0500

Now there are duplicates. I am having a really hard time with this. I want to keep the index the same if it lies on a 15min interval and round up or down to the closest interval.

On Mon, Jun 28, 2010 at 5:40 PM, Gabor Grothendieck <ggrothendieck_at_gmail.com> wrote:
> On Mon, Jun 28, 2010 at 6:36 PM, stephen sefick <ssefick@gmail.com> wrote:
>> #z is my raggidy zoo series
>> min15 <- times("00:15:00")
>> trunc(index(z), min15)
>>
>> This looks like what I want I am just truncating the index to the
>> nearest 15 min interval.  a quick check with length confirms that they
>> are both of the same length.  I am just checking to make sure that I
>> am not missing something.  Thank you very much for your help.
>>
>
> Yes, that truncates.
>

-- 
Stephen Sefick
____________________________________
| Auburn University                                   |
| Department of Biological Sciences           |
| 331 Funchess Hall                                  |
| Auburn, Alabama                                   |
| 36849                                                    |
|___________________________________|
| sas0025_at_auburn.edu                             |
| http://www.auburn.edu/~sas0025             |
|___________________________________|

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 28 Jun 2010 - 22:50:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 Jun 2010 - 23:20:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive