library(SmarterScotland)

The vignette("basic-workflow") vignette provides an outline of basic functionalities

Live reference data

More recent versions of the provided data sets can be sourced live from the statistics.gov.scot portal using dedicated functions, get_available_datasets sources available data and get_available_geographies() sources and parses Standard Geography Code Register. Searching for thematic data sets can be achieved simply using queries, as shown below.

get_available_datasets(pattern = "expectancy")
dataset_value subject
124 http://statistics.gov.scot/data/healthy-life-expectancy healthy-life-expectancy
125 http://statistics.gov.scot/data/healthy-life-expectancy-deprived healthy-life-expectancy-deprived

Additional information on the available data can be gathered by following the links returned in the data set above. For instance http://statistics.gov.scot/data/pupil-attainment-asn points to Pupil Attainment (English and Maths) data set.