Skip to contents

Fix and fill care home name and postcodes

Usage

fill_ch_names(
  ch_data,
  ch_name_lookup_path = get_slf_ch_name_lookup_path(),
  spd_path = get_spd_path(),
  uk_pc_path = get_uk_postcode_path()
)

Arguments

ch_data

partially cleaned up care home data as a tibble

ch_name_lookup_path

Path to the 'official' Care Home name Excel Workbook, this defaults to get_slf_ch_name_lookup_path()

spd_path

Path to the Scottish Postcode Directory (rds) version, this defaults to get_spd_path()

uk_pc_path

Path to the UK postcode list. This is defaults to get_uk_postcode_path()

Value

the same data with improved accuracy and completeness of the Care Home names and postcodes, as a tibble.