R
A detailed usage guide for installing and using catch22 in R (Rcatch22).
Last updated
A detailed usage guide for installing and using catch22 in R (Rcatch22).
Last updated
Select a card below to access R-specific usage information.
You can install the stable version of Rcatch22 from CRAN using the following:
Here we outline how you can jump straight into computing catch22 features on your time series data with a basic usage example.
Rcatch22 expects a single univariate time series as a numeric vector with length equal to the number of points in the time series. For example, consider a time series with length 100:
To compute catch22 features, call the catch22_all
function on your time series data as follows:
A data frame is returned with two columns: names
and features
as shown below
To access the full list of feature names, you can also run feature_list.
And that's it! You now have all the knowledge you need to apply catch22 to your time series data. To access some of the additional functionality of catch22, keep reading for advanced usage tips and examples.
Ready to explore some of the additional functionality of Rcatch22?
If the location and spread of the raw time series distribution may be important for your application, you can enable catch24.
Catch24 is an extension of the original catch22 feature set to include mean and standard deviation, yielding a total of 24 time series features. An option to include the mean and standard deviation as features in addition to catch22 is available through setting the catch24 argument to TRUE
:
If you do not wish to compute the full catch22 feature set on your time series, you can alternatively compute each feature (including mean and std. deviation) individually.
In pycatch22 each feature function can be accessed individually and takes arrays as tuples or To compute individual features in Rcatch22, you can access the feature functions using their unique names (as shown in the feature overview table). Note that feature functions are given by the feature long name e.g.,IN_AutoMutualInfoStats_40_gaussian_fmmi
.
For example, let's compute the feature IN_AutoMutualInfoStats_40_gaussian_fmmi
on a single univariate time series:
Click one of the expandable tabs below to explore commonly asked questions about Rcatch22: