Learn R Programming

Rcatch22

R package for the calculation of 22 CAnonical Time-series CHaracteristics. The package is an efficient implementation that calculates time-series features coded in C.

Installation

You can install the stable version of Rcatch22 from CRAN using the following:

install.packages("Rcatch22")

You can install the development version of Rcatch22 from GitHub using the following:

devtools::install_github("hendersontrent/Rcatch22")

You might also be interested in a related R package called theft (Tools for Handling Extraction of Features from Time series) which provides standardised access to Rcatch22 and 5 other feature sets (including 3 feature sets from Python libraries) for a total of ~1,200 features. theft also includes extensive functionality for processing and analysing time-series features, including automatic time-series classification, top performing feature identification, and a range of statistical data visualisations.

Wiki

Please open the included vignette within an R environment or visit the detailed Rcatch22 Wiki for information and tutorials.

Computational performance

With features coded in C, Rcatch22 is highly computationally efficient, scaling nearly linearly with time-series size. Computation time in seconds for a range of time series lengths is presented below.

catch24

An option to include the mean and standard deviation as features in addition to catch22 is available through setting the catch24 argument to TRUE:

features <- catch22_all(x, catch24 = TRUE)

Citation

A DOI is provided at the top of this README. Alternatively, the package can be cited using the following:

To cite package 'Rcatch22' in publications use:

  Trent Henderson (2022). Rcatch22: Calculation of 22 CAnonical
  Time-Series CHaracteristics. R package version 0.2.1.
  https://CRAN.R-project.org/package=Rcatch22

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {Rcatch22: Calculation of 22 CAnonical Time-Series CHaracteristics},
    author = {Trent Henderson},
    year = {2022},
    note = {R package version 0.2.1},
    url = {https://CRAN.R-project.org/package=Rcatch22},
  }

Please also cite the original catch22 paper:

Copy Link

Version

Install

install.packages('Rcatch22')

Monthly Downloads

321

Version

0.2.3

License

GPL-3

Maintainer

Trent Henderson

Last Published

October 2nd, 2024

Functions in Rcatch22 (0.2.3)

SC_FluctAnal_2_dfa_50_1_2_logi_prop_r1

Function to calculate a statistical feature
MD_hrv_classic_pnn40

Function to calculate a statistical feature
feature_list

All features available in Rcatch22 in tidy format
catch22_all

Automatically run every time-series feature calculation included in the catch22 set
SP_Summaries_welch_rect_centroid

Function to calculate a statistical feature
SP_Summaries_welch_rect_area_5_1

Function to calculate a statistical feature
PD_PeriodicityWang_th0_01

Function to calculate a statistical feature
SC_FluctAnal_2_rsrangefit_50_1_logi_prop_r1

Function to calculate a statistical feature
CO_trev_1_num

Function to calculate a statistical feature
CO_Embed2_Dist_tau_d_expfit_meandiff

Function to calculate a statistical feature
DN_OutlierInclude_n_001_mdrmd

Function to calculate a statistical feature
DN_HistogramMode_5

Function to calculate a statistical feature
CO_HistogramAMI_even_2_5

Function to calculate a statistical feature
CO_f1ecac

Function to calculate a statistical feature
DN_HistogramMode_10

Function to calculate a statistical feature
CO_FirstMin_ac

Function to calculate a statistical feature
DN_Spread_Std

Function to calculate a statistical feature
FC_LocalSimple_mean1_tauresrat

Function to calculate a statistical feature
SB_BinaryStats_diff_longstretch0

Function to calculate a statistical feature
SB_MotifThree_quantile_hh

Function to calculate a statistical feature
SB_BinaryStats_mean_longstretch1

Function to calculate a statistical feature
DN_OutlierInclude_p_001_mdrmd

Function to calculate a statistical feature
DN_Mean

Function to calculate a statistical feature
FC_LocalSimple_mean3_stderr

Function to calculate a statistical feature
SB_TransitionMatrix_3ac_sumdiagcov

Function to calculate a statistical feature
IN_AutoMutualInfoStats_40_gaussian_fmmi

Function to calculate a statistical feature