Learn R Programming

csodata (version 1.4.2)

cso_get_interval: Returns a the time interval used to record data in a CSO table

Description

Reads the metadata of a table to return an atomic character vector displaying the intervals at which the data included in the table was gathered/calculated.

Usage

cso_get_interval(table_code, cache = TRUE, flush_cache = TRUE)

Value

character vector. The names of the statistics included in the table, with one element for each statistic.

Arguments

table_code

string. A valid code for a table on data.cso.ie .

cache

logical. Whether to use cached data, if available. Default value is TRUE. Strongly recommended to use caching, as otherwise the entire table could be downloaded only to access a small part of its metadata.

flush_cache

logical. If TRUE (default) the cache will be checked for old, unused files. Any files which have not been accessed in the last month will be deleted

Examples

Run this code
if (FALSE) {
interval <- cso_get_interval("C0636")
}

Run the code above in your browser using DataLab