Title: | Time series from <https://www.comp-engine.org/> |
---|---|
Description: | All time series from the comp-engine database are included, along with some meta data. |
Authors: | Rob Hyndman [aut, cre] , Yangzhuoran Yang [aut] |
Maintainer: | Rob Hyndman <[email protected]> |
License: | CC0 |
Version: | 0.1 |
Built: | 2024-10-25 02:45:37 UTC |
Source: | https://github.com/robjhyndman/compenginets |
Download category information
category_scraping()
category_scraping()
Yangzhuoran Yang
cate_path <- category_scraping()
cate_path <- category_scraping()
Return a time series with a specified name or a list of time series in a specified category.
get_cets(key, category = TRUE, maxpage = 10)
get_cets(key, category = TRUE, maxpage = 10)
key |
The name of the time series or the name of the category,
depending on value of |
category |
If |
maxpage |
The maximum number of pages to extract.
Due to the number of time series that can be returned, a maximum of 10 time series are returned per page.
The default is 10 pages (100 time series). This argument is only valid when |
A list consisting of the selected series with class ts
.
NOTE: Due to the large variation in the properties of time series stored in the CompEngine database,
the tsp
attribute (the start time in time units, the end time and the frequency) is not tailor made for each time series.
If needed, user can customize the tsp
attribute based on the output attribute of samplingInformation
.
Some of the attributes are listed as follow:
name |
The name of the time series |
description |
the description of the time series |
samplingInformation |
Indicating the frequency and other sampling related information |
tags |
The tags in the database |
category |
The name of the category and the hierarchy of the current category. See also |
sfi |
"special feature identification" information |
source |
The source of the time series |
tsp |
Tsp Attribute of Time-Series-like Objects. See |
Yangzhuoran Yang
# Getting series within Finance category (including subcategory) cets_finance <- get_cets("finance") unique(mapply(attr, cets_finance, MoreArgs = list(which = "category.name"))) # Getting series by its name W138_finance_m4 <- get_cets("M4_W138_Finance_1", category = FALSE)
# Getting series within Finance category (including subcategory) cets_finance <- get_cets("finance") unique(mapply(attr, cets_finance, MoreArgs = list(which = "category.name"))) # Getting series by its name W138_finance_m4 <- get_cets("M4_W138_Finance_1", category = FALSE)