cso_get_var_values: Returns a list of the values of variables of a CSO data table

View source: R/cso_get_meta.R

cso_get_var_valuesR Documentation

Returns a list of the values of variables of a CSO data table

Description

Reads the table to determine all the unique values taken by the variables in the table and returns them as a list.

Usage

cso_get_var_values(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.

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

list. It has length equal to the number of variables in the table, and each element is a character vector which has all the values taken by one variable.

Examples

## Not run: 
var_val <- cso_get_var_values("IPA03")

## End(Not run)


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