[R] Plotting iregular time series

stephen sefick ssefick at gmail.com
Wed Oct 29 23:53:43 CET 2008


why not look at the zoo package it can deal with time irregular time
series.  I have used it and I have been very happy.

On Wed, Oct 29, 2008 at 5:52 PM, Levy,Ilan [Ontario] <IlanL at ec.gc.ca> wrote:
> Hi,
>
> I have several time series that I need to plot on the same plot.
> There are 3 problems with these series:
> 1. they do not start or end at the same times
> 2. they have different time intervals (seconds, minutes or hours)
> 3. they all have random missing time steps of a few step to longer
> periods of several days
>
> The data is imported from a database as POSIXct so that the first column
> holds the date-time format like: " 2007-09-05 15:42:00", and the rest of
> the data is numeric.
>
> I am thinking of creating a new time series (ts) with the smallest time
> interval (seconds) that will cover the max length of the time period,
> and try to put the existing data I have onto that series, so that
> missing data will be skiped.
>
> The question is how to match the time steps from the original series to
> the new time series?
>
> Thanks,
> Ilan
> AQRD
> Environment Canada
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>



-- 
Stephen Sefick
Research Scientist
Southeastern Natural Sciences Academy

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis



More information about the R-help mailing list