add_board_from_lcaname: Assign Health Board name based on Local Authority name

View source: R/add_board_from_lcaname.R

add_board_from_lcanameR Documentation

Assign Health Board name based on Local Authority name

Description

This function should pick up all common variations in LCA name, such as 'City of Edinburgh' vs 'Edinburgh City'. Any non-matching LCA names will return 'Other Non-Scottish Residents'

Usage

add_board_from_lcaname(df, lcaname, region = FALSE)

Arguments

df

The dataframe you want to mutate

lcaname

The name of the LCA variable

region

If FALSE, returns Health Board in "NHS XXXXXX". If TRUE, returns "XXXXXX Region"

Value

Dataframe with an extra column named hb

See Also

Other Recoding: add_hospital_board()

Examples

lcaname_to_hb(bluenile::lca_names, lca, region = FALSE)

shintoLamp/bluenile documentation built on Aug. 6, 2022, 6:29 a.m.