View source: R/add_board_from_lcaname.R
add_board_from_lcaname | R Documentation |
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'
add_board_from_lcaname(df, lcaname, region = FALSE)
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" |
Dataframe with an extra column named hb
Other Recoding:
add_hospital_board()
lcaname_to_hb(bluenile::lca_names, lca, region = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.