Read a National Reference File.
Arguments
- filename
A character string giving the file name to read. Any file extension supplied will be ignored and matching is case-insensitive.
- 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_selectalso accepts a numeric column index. See?tidyselect::languagefor full details on the selection language.
Value
A tibble of the requested National Reference File.
Examples
get_national_ref_file("gpprac")
#> Error: [ENOENT] Failed to search directory '/conf/linkage/output/lookups/Unicode/National Reference Files': no such file or directory
get_national_ref_file("GPprac.csv", col_select = c("praccode", "postcode"))
#> Error: [ENOENT] Failed to search directory '/conf/linkage/output/lookups/Unicode/National Reference Files': no such file or directory
get_national_ref_file("specialty_groupings")
#> Error: [ENOENT] Failed to search directory '/conf/linkage/output/lookups/Unicode/National Reference Files': no such file or directory