talira

R package for regular and irregular time series with an index of any class

open sourceGPL-2.0-only OR GPL-3.0-onlyfree

zoo is an R package that provides an S3 class for regular and irregular time series: it stores data as numeric vectors, matrices or factors together with a time index of any class, such as numbers, Date, POSIXct, yearmon or yearqtr. Its functions follow the base R ts class and extend standard generics, with tools for importing, exporting and converting between time series classes, plotting with base R, ggplot2, lattice or tinyplot, aligning and merging series recorded at different times, aggregating to coarser intervals, lags and subsets, rolling analytics over moving windows, and time-based interpolation and filling.

Problems it solves

  • work with irregularly spaced time series in R
  • merge two time series in R that were recorded at different times
  • compute a rolling mean over a time series in R

Features

  • Time series class with an index of any class (numeric, Date, POSIXct, yearmon, yearqtr)
  • Handles irregular as well as regular time series
  • Converts to and from ts, xts, timeSeries and other time series classes
  • Merges and aligns series recorded at different times
  • Rolling analytics over moving windows
  • Aggregation to coarser intervals and time-based interpolation and filling