series {ugatsdb} | R Documentation |
Retrieve Series Table
Description
This function pulls and returns a table called 'SERIES' from the database.
Usage
series(dsid = NULL, dataset.info = TRUE, ordered = TRUE, return.query = FALSE)
Arguments
dsid |
character. (Optional) id's of datasets matching the 'DSID' column of the 'DATASET' table (retrieved using |
dataset.info |
logical. |
ordered |
logical. |
return.query |
logical. |
Details
The 'SERIES' table gives information about all of the time series in the database. Each series is given a code which is however not unique across datasets (see .IDvars
).
Each series also has a label describing the series. Further information recorded are the minimum and maximum time coverage, and (optionally) a separate series source and url.
By default dataset.info = TRUE
and the frequency of the data, the date when the dataset containing the series was last updated, the dataset and data source are added to the
'SERIES' table from the 'DATASET' table.
If dataset.info = FALSE
, the 'DATASET' table is not joined to the 'SERIES' table, and ordered = TRUE
only orders the series within each dataset to maintain the column order of series in the source data.
In that case the datasets are returned in alphabetic order of 'DSID', not the order in which they were entered into the 'DATASET' table.
Value
A data.table
with information about the available time series in the database.
See Also
Examples
# By default returns all series with additional information
series()
# Raw series table
series(dataset.info = FALSE)
# Only series in the Monthly Macroeconomic Indicators of the BoU
series("BOU_MMI")