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 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 June 10, 2022, 5:09 p.m.