change_hbcodes: Change health boards codes from 2019 version to the 2014 one.

View source: R/change_hbcodes.R

change_hbcodesR Documentation

Change health boards codes from 2019 version to the 2014 one.

Description

# Tableau uses 2014 codes, but code produces 2019. Changing from 2019 to 2014 for the TDE files

Usage

change_hbcodes(dataset, version_to, code_cols = c("location", "hb"))

Arguments

dataset

The object that you want to save.

version_to

If you want to go 14 to 19 or 19 to 14.

code_cols

Character vector of names for the columns in dataset that contain codes to change. Optional - will default to "location" and "hb".


Public-Health-Scotland/hsmr documentation built on June 24, 2024, 1:48 a.m.