On Fri, Jun 22, 2012 at 3:45 PM, APOCooter <mikeedinge...@gmail.com> wrote:
>
> [snip and rearrange]
>
>> try to put your data in a proper time series class (zoo/xts if I
>>might give a personal-ish plug) which will make all these calculations
>>much easier.
>
> I thought that's what I was doing with as.POSIXlt?

as.POSIXlt converts your time stamps to one of many formats (though
it's really probably better to use as.POSIXct instead) -- zoo/xts
objects are "containers" for time series data and provide you with
methods/wrappers to do many common time-series style calculations.
E.g., rollapply() or period.apply()

Best,
Michael

______________________________________________
R-help@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.

Reply via email to