Skip to content

How to create time series objects combining two vectors

2 messages · sarelseerower, Gabor Grothendieck

#
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.
#
On Fri, Oct 21, 2011 at 6:24 AM, sarelseerower <sarelseerower at gmail.com> wrote:
See:
http://rwiki.sciviews.org/doku.php?id=guides:tutorials:hydrological_data_analysis:miscellaneous_data_import