get_data_properties: Get Data Properties

Description Usage Arguments Details Value Examples

View source: R/get_data_properties.R

Description

The queries sources properties for the desired data set and optionally values for those properties.

Usage

1
get_data_properties(data_set, property_values = FALSE)

Arguments

data_set

String corresponding to subject column derived via get_available_datasets.

property_values

A boolean. Defaults to FALSE. If TRUE the function will return values for each available property. The match is case sensitive

Details

Please note that for some of the data sets case is significant. For instance life-expectancy will match http://statistics.gov.scot/data/life-expectancy whereas Life-Expectancy will match http://statistics.gov.scot/data/Life-Expectancy the first data set is obsolete and maintained by The Scottish Government for the backward compatibility. If in doubt paste dataset.value URI obtained via the get_available_datasets function.

Value

A data frame.

Examples

1
2
3
4
5
## Not run: 
get_data_properties(data_set = "Life-Expectancy")
get_data_properties(data_set = "Life-Expectancy", property_values = TRUE)

## End(Not run)

konradedgar/SmarterScotland documentation built on Oct. 3, 2019, 11:46 a.m.