[R] How to create time series objects combining two vectors

Gabor Grothendieck ggrothendieck at gmail.com
Fri Oct 21 16:23:52 CEST 2011

On Fri, Oct 21, 2011 at 6:24 AM, sarelseerower <sarelseerower at gmail.com> wrote:
> I am new to R and trying to understand time series objects.
> I have 2 vectors, one containing rainfall values  (lets call the vector
> "rain") and the other the time/date in seconds (lets call it "time"). Is
> there a method to create a time series object simply by giving the "rain"
> and "time" vectors as inputs? Something in the line of:
> time_series_object <- time_series_function(rain, time)
> Most of the packages I have investigated don't have a simple option like
> this.  Can this be done however?


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

More information about the R-help mailing list