Re: [R] How to speed up grouping time series, help please

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Mon, 04 Apr 2011 11:38:07 -0400

On Mon, Apr 4, 2011 at 11:20 AM, Den Alpin <den.alpin_at_gmail.com> wrote:
> I did some tests on Your and Gabor solutions, below my findings:
>
> - Your solution is fast as my solution in xts (below) but MUCH MORE
> READABLE, in particular I think your test should take into account xts
> creation from the data.frame (see below);
> - Gabor's solution with read.zoo is fast as xts but give an xts object
> that has some problems with time zones.

read.zoo gives a zoo object, not an xts object. If you want an xts object try as.xts(z). If you were expecting an xts object that may be the source of your other problems.

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
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 04 Apr 2011 - 15:41:12 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 04 Apr 2011 - 15:50:26 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