Read a Data Zone-Scottish Index of Multiple Deprivation (SIMD) lookup file from cl-out into a tibble.
Arguments
- simd_version
A string defining a SIMD version. The default value is "latest". Alternatively you can supply a string defining a specific version. It should follow pattern "YYYY" or "YYYYv2", e.g. "2020v2".
- col_select
Columns to include in the results. You can use the same mini-language as
dplyr::select()
to refer to the columns by name. Usec()
to use more than one selection expression. Although this usage is less common,col_select
also accepts a numeric column index. See?tidyselect::language
for full details on the selection language.
Value
a tibble of the SIMD DataZone lookup
Examples
get_simd_datazone()
#> Error: [ENOENT] Failed to search directory '/conf/linkage/output/lookups/Unicode/Deprivation': no such file or directory
get_simd_datazone(simd_version = "2016")
#> Error: [ENOENT] Failed to search directory '/conf/linkage/output/lookups/Unicode/Deprivation': no such file or directory
get_simd_datazone(
simd_version = "2016",
col_select = c("DataZone2011", "simd2016rank")
)
#> Error: [ENOENT] Failed to search directory '/conf/linkage/output/lookups/Unicode/Deprivation': no such file or directory