cso_get_vars: Returns a character vector listing the contents of a CSO data...

View source: R/cso_get_meta.R

cso_get_varsR Documentation

Returns a character vector listing the contents of a CSO data table

Description

Reads the metadata of a table to return a character vector of the included variables and statistics in the table.

Usage

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

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.

Value

character vector. The names of the statistics included in the table.

Examples

## Not run: 
cso_get_vars("IPA03")

## End(Not run)

csodata documentation built on Aug. 11, 2023, 5:08 p.m.