knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
The goal of compenginets is to provide all the time series from https://www.comp-engine.org/
compenginets
currently isn't on CRAN.
You can install the development version from
Github
# install.packages("devtools") devtools::install_github("robjhyndman/compenginets")
CompEngine is an online time-series database which allow users to upload and interactively compare data with similar time series data set. The website was build by Nick Jones and Ben Fulcher, based on the early work conducted by Ben D. Fulcher, Max A. Little, and Nick S. Jones (2013). To provide time series similar to the data user uploads, it compute features of the data, and find existing time series matching those features. The features list and detailed description can be found on the page of CompEngine.
This package intends to provide means to access data from CompEngine with ease with an R
solution. Function get_cets
can be used to return time series with a specified name or within a certain category. By default, get_cets
returns the first 10 pages (maximum 10 in one page) time series within the category which matches argument key
.
library(compenginets) # Get series within Finance category (including subcategory) cets_finance <- get_cets("finance") length(cets_finance) str(cets_finance[[1]]) # Supply the number of pages need with option maxpage # A maximum of 10 time series are in one page cets_finance_20 <- get_cets("finance", maxpage = 2) length(cets_finance_20) # Switch category to FALSE to get the time series matching a name W138_finance_m4 <- get_cets("M4_W138_Finance_1", category = FALSE) str(W138_finance_m4)
A list of category can be obtained externally.
cate_path <- category_scraping() str(cate_path, list.len = 10)
This package is free and open source software, licensed under CC0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.