sarelseerower
2011-Oct-21 10:24 UTC
[R] How to create time series objects combining two vectors
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? -- View this message in context: http://r.789695.n4.nabble.com/How-to-create-time-series-objects-combining-two-vectors-tp3924883p3924883.html Sent from the R help mailing list archive at Nabble.com.
Gabor Grothendieck
2011-Oct-21 14:23 UTC
[R] How to create time series objects combining two vectors
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? > >See: http://rwiki.sciviews.org/doku.php?id=guides:tutorials:hydrological_data_analysis:miscellaneous_data_import -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com